public void CamelCase() { var memberInfo = testClassType.GetProperty( nameof(TestClass.CamelCase), BindingFlags.Instance | BindingFlags.Public); var validationPart = ValidationPartResolvers.CamelCase(memberInfo); Assert.Equal("camelCase", validationPart); }
public void DataMember() { var memberInfo = testClassType.GetProperty( nameof(TestClass.DataMember), BindingFlags.Instance | BindingFlags.Public); var validationPart = ValidationPartResolvers.DataMember(memberInfo); Assert.Equal("dataMember", validationPart); }