Пример #1
0
        public void TypeHasProperty_ClassWrongProperties_ReturnFalse(string propertyName)
        {
            // Arrange
            var testObj = new SampleObject(SampleNumbers.int1, SampleStrings.str1, DateTime.UtcNow, SampleStrings.str2, SampleStrings.str3, SampleStrings.str4);

            // Act
            var exists = testObj.HasProperty(propertyName);

            // Assert
            exists.Should().BeFalse();
        }
Пример #2
0
        public void HasProperty_ClassExistingPropertiesSensitive_ReturnTrue(string propertyName)
        {
            // Arrange
            var testObj = new SampleObject(SampleNumbers.int1, SampleStrings.str1, DateTime.UtcNow, SampleStrings.str2, SampleStrings.str3, SampleStrings.str4);

            // Act
            var exists = testObj.HasProperty(propertyName);

            // Assert
            exists.Should().BeTrue();
        }