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(); }
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(); }