public void PropertyAccessors_GetPropertyValue_ValidPropertyName(string propertyName, object expectedResult) { var testObj = new PropertyAccessorsTestClass(); var propertyValue = testObj.GetPropertyValue(propertyName); Assert.Equal(propertyValue, expectedResult); }
public void PropertyAccessors_GetPropertyValue_PropertyNameIsInvalid(string propertyName) { var testObj = new PropertyAccessorsTestClass(); Assert.Throws <ArgumentException>(() => testObj.GetPropertyValue(propertyName)); }