[dotnet] Add dotnet projects and examples
+ Sitemap generator I created while learning the dispose pattern + Testing project for learning general C#
This commit is contained in:
22
dotnet/testing/KlipsLibrary.Test/UnitTest1.cs
Normal file
22
dotnet/testing/KlipsLibrary.Test/UnitTest1.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using Xunit;
|
||||
|
||||
namespace KlipsLibrary.Test;
|
||||
|
||||
public class UnitTest1
|
||||
{
|
||||
[Fact]
|
||||
public void DogTest()
|
||||
{
|
||||
var dog = new Dog("Buford", "Woof");
|
||||
Assert.Equal("Buford", dog.Name);
|
||||
dog.Speak();
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void HumanTest()
|
||||
{
|
||||
var human = new Human("Shaun", "Hi");
|
||||
Assert.Equal("Shaun", human.Name);
|
||||
human.Speak();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user