Skip to content

Instantly share code, notes, and snippets.

@nedgrady
Created May 1, 2023 13:22
Show Gist options
  • Save nedgrady/7b603b8c05c7d9ca0479f41306a03269 to your computer and use it in GitHub Desktop.
Save nedgrady/7b603b8c05c7d9ca0479f41306a03269 to your computer and use it in GitHub Desktop.
[Test]
public void FullNameConcatenatesFirstAndLastName()
{
// Arrange
Person personUnderTest = new()
{
FirstName = "Ned",
LastName = "Grady",
Email = "Ned.Grady@nedgrady.co.uk"
};
// Act
var fullName = personUnderTest.FullName;
// Assert
Assert.AreEqual("Ned Grady", fullName);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment