public void Be() { var subject = new Person("John", "Smith", 42); var expected = new Person("John", "Smith", 42); subject.Should().Be(expected); }
public void Test() { var subject = new Person("John", "Smith", 42); var expected = new { FirstName = "John", LastName = "Smith" }; subject.Should().BeEquivalentTo(expected); }