Exemple #1
0
        public void When_a_property_is_hidden_in_a_derived_class_it_should_ignore_it()
        {
            // Arrange
            var subject = new SubclassA <string> {
                Foo = "test"
            };
            var expectation = new SubclassB <string> {
                Foo = "test"
            };

            // Act
            Action action = () => subject.Should().BeEquivalentTo(expectation);

            // Assert
            action.Should().NotThrow();
        }