public static void CamelCaseAttributeDesignTimeNonMatch() { SimpleTestClassWithCamelCase obj = JsonSerializer.Parse <SimpleTestClassWithCamelCase>(SimpleTestClass.s_data); // This is 0 (default value) because the provided data is pascal-cased Assert.Equal(obj.MyInt16, 0); }
public static void CamelCaseAttributeDesignTime() { SimpleTestClassWithCamelCase obj = JsonSerializer.Read <SimpleTestClassWithCamelCase>(SimpleTestClassWithCamelCase.s_data); Assert.Equal(obj.MyInt16, 1); }