private static TestNamingCase ( string baseName, NamingConvention testCase, UnderscoreConvention testUnder, string expected ) : void | ||
baseName | string | |
testCase | NamingConvention | |
testUnder | UnderscoreConvention | |
expected | string | |
return | void |
private static void TestNamingCase(string baseName, NamingConvention testCase, UnderscoreConvention testUnder, string expected)
{
JsonMemberNamingConventionAttribute attribute = new JsonMemberNamingConventionAttribute(testCase, testUnder);
TestPropertyDescriptor property = CreateTestProperty(baseName);
IPropertyDescriptorCustomization customization = attribute;
customization.Apply(property);
Assert.AreEqual(expected, property.CustomizedName);
}