Exemplo n.º 1
0
        public void Be()
        {
            var subject  = new Person("John", "Smith", 42);
            var expected = new Person("John", "Smith", 42);

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

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