Json.NET
Code Coverage Statistics for Class

Newtonsoft.Json.Serialization.DefaultContractResolver

Symbol Coverage: 93.50% (230 of 246)

Branch Coverage: 90.66% (165 of 182)

Method Coverage: 93.94% (31 of 33)

Cyclomatic Complexity Avg: 3.76 Max:22

Methods: 33


Methods

Method Symbol Coverage Branch Coverage Method Coverage Cyclomatic Complexity
.ctor() : void  0.00% : 0 of 2
0.00% : 0 of 1
0.00% : 0 of 1
1
GetClrTypeFullName(System.Type type) : System.String [static]  0.00% : 0 of 4
0.00% : 0 of 4
0.00% : 0 of 1
3
IsValidCallback(System.Reflection.MethodInfo method,System.Reflection.ParameterInfo[] parameters,System.Type attributeType,System.Reflection.MethodInfo currentCallback,byref System.Type prevAttributeType) : System.Boolean [static]  66.67% : 12 of 18
65.22% : 15 of 23
100.00% : 1 of 1
14
CreateMemberValueProvider(System.Reflection.MemberInfo member) : Newtonsoft.Json.Serialization.IValueProvider  75.00% : 3 of 4
100.00% : 2 of 2
100.00% : 1 of 1
2
CreateProperties(Newtonsoft.Json.Serialization.JsonObjectContract contract) : System.Collections.Generic.IList<Newtonsoft.Json.Serialization.JsonProperty>  91.67% : 11 of 12
85.71% : 6 of 7
100.00% : 1 of 1
4
ResolveContract(System.Type type) : Newtonsoft.Json.Serialization.JsonContract  92.31% : 12 of 13
88.89% : 8 of 9
100.00% : 1 of 1
5
CreateContract(System.Type objectType) : Newtonsoft.Json.Serialization.JsonContract  94.44% : 17 of 18
100.00% : 9 of 9
100.00% : 1 of 1
9
<GetSerializableMembers>b__0(System.Reflection.MemberInfo m) : System.Boolean [static]  100.00% : 1 of 1
N/A : 0 of 0
100.00% : 1 of 1
1
<GetSerializableMembers>b__1(System.Reflection.MemberInfo m) : System.Boolean [static]  100.00% : 1 of 1
N/A : 0 of 0
100.00% : 1 of 1
1
CanConvertToString(System.Type type) : System.Boolean [static]  100.00% : 8 of 8
90.91% : 10 of 11
100.00% : 1 of 1
8
CreateArrayContract(System.Type objectType) : Newtonsoft.Json.Serialization.JsonArrayContract  100.00% : 4 of 4
100.00% : 1 of 1
100.00% : 1 of 1
1
CreateDictionaryContract(System.Type objectType) : Newtonsoft.Json.Serialization.JsonDictionaryContract  100.00% : 4 of 4
100.00% : 1 of 1
100.00% : 1 of 1
1
CreateISerializableContract(System.Type objectType) : Newtonsoft.Json.Serialization.JsonISerializableContract  100.00% : 8 of 8
100.00% : 3 of 3
100.00% : 1 of 1
2
CreateLinqContract(System.Type objectType) : Newtonsoft.Json.Serialization.JsonLinqContract  100.00% : 4 of 4
100.00% : 1 of 1
100.00% : 1 of 1
1
CreateObjectContract(System.Type objectType) : Newtonsoft.Json.Serialization.JsonObjectContract  100.00% : 8 of 8
100.00% : 5 of 5
100.00% : 1 of 1
3
CreatePrimitiveContract(System.Type objectType) : Newtonsoft.Json.Serialization.JsonPrimitiveContract  100.00% : 4 of 4
100.00% : 1 of 1
100.00% : 1 of 1
1
CreateProperty(Newtonsoft.Json.Serialization.JsonObjectContract contract,System.Reflection.MemberInfo member) : Newtonsoft.Json.Serialization.JsonProperty  100.00% : 43 of 43
97.44% : 38 of 39
100.00% : 1 of 1
22
CreateShouldSerializeTest(System.Reflection.MemberInfo member) : System.Predicate<System.Object>  100.00% : 6 of 6
100.00% : 4 of 4
100.00% : 1 of 1
3
CreateStringContract(System.Type objectType) : Newtonsoft.Json.Serialization.JsonStringContract  100.00% : 4 of 4
100.00% : 1 of 1
100.00% : 1 of 1
1
.cctor() : void [static]  100.00% : 3 of 3
N/A : 0 of 0
100.00% : 1 of 1
1
.ctor(System.Boolean shareCache) : void  100.00% : 4 of 4
100.00% : 1 of 1
100.00% : 1 of 1
1
get_DynamicCodeGeneration() : System.Boolean  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
GetCache() : System.Collections.Generic.Dictionary<Newtonsoft.Json.Serialization.ResolverContractKey,Newtonsoft.Json.Serialization.JsonContract>  100.00% : 4 of 4
100.00% : 2 of 2
100.00% : 1 of 1
2
GetDefaultCreator(System.Type createdType) : System.Func<System.Object>  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
GetParametrizedConstructor(System.Type objectType) : System.Reflection.ConstructorInfo  100.00% : 5 of 5
100.00% : 2 of 2
100.00% : 1 of 1
2
GetSerializableMembers(System.Type objectType) : System.Collections.Generic.List<System.Reflection.MemberInfo>  100.00% : 17 of 17
100.00% : 14 of 14
100.00% : 1 of 1
9
InitializeContract(Newtonsoft.Json.Serialization.JsonContract contract) : void  100.00% : 29 of 29
100.00% : 27 of 27
100.00% : 1 of 1
14
ResolveContractConverter(System.Type objectType) : Newtonsoft.Json.JsonConverter  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
ResolvePropertyName(System.String propertyName) : System.String  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
ShouldSerializeEntityMember(System.Reflection.MemberInfo memberInfo) : System.Boolean  100.00% : 6 of 6
100.00% : 6 of 6
100.00% : 1 of 1
4
UpdateCache(System.Collections.Generic.Dictionary<Newtonsoft.Json.Serialization.ResolverContractKey,Newtonsoft.Json.Serialization.JsonContract> cache) : void  100.00% : 4 of 4
100.00% : 2 of 2
100.00% : 1 of 1
2
get_DefaultMembersSearchFlags() : System.Reflection.BindingFlags  N/A : 0 of 0
100.00% : 1 of 1
100.00% : 1 of 1
1
set_DefaultMembersSearchFlags(System.Reflection.BindingFlags value) : void  N/A : 0 of 0
100.00% : 1 of 1
100.00% : 1 of 1
1