示例#1
0
        public void Be()
        {
            var subject  = new Person("John", "Smith", 42);
            var expected = new Person("John", "Smith", 42);

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

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