public void TryCheckPropertyPath_Category(string propertyPath, bool expectedReturn, string expectedValidatedPath) { var genericRepostoryTest = new GenericRepostoryTest<Category>(); string validatedPath; bool actualReturn = genericRepostoryTest.TryCheckPropertyPathAccessor(propertyPath, out validatedPath); Assert.Equal(expectedReturn, actualReturn); Assert.Equal(expectedValidatedPath, validatedPath); }
public void TryCheckPropertyName(string propertyName, bool expectedReturn, string expectedValidatedName) { var genericRepostoryTest = new GenericRepostoryTest<Foo>(); string validatedName; bool actualReturn = genericRepostoryTest.TryCheckPropertyNameAccessor(propertyName, out validatedName); Assert.Equal(expectedReturn, actualReturn); Assert.Equal(expectedValidatedName, validatedName); }