public void Be()
        {
            var subject  = new Person("John", "Smith", 42);
            var expected = new Person("John", "Smith", 42);

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

            subject.Should().BeEquivalentTo(expected);
        }