23 lines
496 B
C#
23 lines
496 B
C#
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());
|
|
}
|
|
}
|
|
} |