This repository has been archived on 2020-06-09. You can view files and clone it, but cannot push or open issues or pull requests.
dotnet-nhibernate-test/ConsoleApp1/Model/PersonTest.cs

23 lines
496 B
C#
Raw Normal View History

2020-06-08 22:12:01 +00:00
using NUnit.Framework;
namespace ConsoleApp1.Model
{
[TestFixture]
public class PersonTest
{
[Test]
public void GetFullNameTest()
{
var person = new Person
{
FirstName = "Test",
LastName = "Kees"
};
Assert.AreEqual("Test", person.FirstName);
Assert.AreEqual("Kees", person.LastName);
Assert.AreEqual("Test Kees", person.GetFullName());
}
}
}