Json.NET
Code Coverage Statistics for Class

Newtonsoft.Json.JsonConvert

Symbol Coverage: 91.89% (204 of 222)

Branch Coverage: 90.09% (100 of 111)

Method Coverage: 98.28% (57 of 58)

Cyclomatic Complexity Avg: 1.93 Max:20

Methods: 58


Methods

Method Symbol Coverage Branch Coverage Method Coverage Cyclomatic Complexity
IsJsonPrimitive(System.Object value) : System.Boolean [static]  0.00% : 0 of 11
0.00% : 0 of 5
0.00% : 0 of 1
5
DeserializeXmlNode(System.String value) : System.Xml.XmlDocument [static]  50.00% : 1 of 2
0.00% : 0 of 1
100.00% : 1 of 1
1
DeserializeXNode(System.String value) : System.Xml.Linq.XDocument [static]  50.00% : 1 of 2
0.00% : 0 of 1
100.00% : 1 of 1
1
ToUniversalTicks(System.DateTime dateTime) : System.Int64 [static]  75.00% : 3 of 4
100.00% : 2 of 2
100.00% : 1 of 1
2
ToUniversalTicks(System.DateTime dateTime,System.TimeSpan offset) : System.Int64 [static]  77.78% : 7 of 9
100.00% : 4 of 4
100.00% : 1 of 1
4
PopulateObject(System.String value,System.Object target,Newtonsoft.Json.JsonSerializerSettings settings) : void [static]  85.71% : 6 of 7
83.33% : 5 of 6
100.00% : 1 of 1
4
DeserializeObject(System.String value,System.Type type,Newtonsoft.Json.JsonSerializerSettings settings) : System.Object [static]  87.50% : 7 of 8
83.33% : 5 of 6
100.00% : 1 of 1
4
ConvertDateTimeToJavaScriptTicks(System.DateTime dateTime) : System.Int64 [static]  100.00% : 3 of 3
100.00% : 1 of 1
100.00% : 1 of 1
1
ConvertDateTimeToJavaScriptTicks(System.DateTime dateTime,System.TimeSpan offset) : System.Int64 [static]  100.00% : 3 of 3
100.00% : 1 of 1
100.00% : 1 of 1
1
ConvertJavaScriptTicksToDateTime(System.Int64 javaScriptTicks) : System.DateTime [static]  100.00% : 3 of 3
100.00% : 1 of 1
100.00% : 1 of 1
1
DeserializeAnonymousType<T>(System.String value,T anonymousTypeObject) : T [static]  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
DeserializeObject(System.String value) : System.Object [static]  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
DeserializeObject(System.String value,System.Type type) : System.Object [static]  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
DeserializeObject(System.String value,System.Type type,Newtonsoft.Json.JsonConverter[] converters) : System.Object [static]  100.00% : 3 of 3
80.00% : 4 of 5
100.00% : 1 of 1
3
DeserializeObject<T>(System.String value) : T [static]  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
DeserializeObject<T>(System.String value,Newtonsoft.Json.JsonConverter[] converters) : T [static]  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
DeserializeObject<T>(System.String value,Newtonsoft.Json.JsonSerializerSettings settings) : T [static]  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
DeserializeXmlNode(System.String value,System.String deserializeRootElementName) : System.Xml.XmlDocument [static]  100.00% : 4 of 4
100.00% : 1 of 1
100.00% : 1 of 1
1
DeserializeXNode(System.String value,System.String deserializeRootElementName) : System.Xml.Linq.XDocument [static]  100.00% : 4 of 4
100.00% : 1 of 1
100.00% : 1 of 1
1
EnsureDecimalPlace(System.Double value,System.String text) : System.String [static]  100.00% : 4 of 4
100.00% : 6 of 6
100.00% : 1 of 1
5
EnsureDecimalPlace(System.String text) : System.String [static]  100.00% : 4 of 4
100.00% : 2 of 2
100.00% : 1 of 1
2
GetUtcOffset(System.DateTime dateTime) : System.TimeSpan [static]  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
IsJsonPrimitiveType(System.Type type) : System.Boolean [static]  100.00% : 8 of 8
100.00% : 5 of 5
100.00% : 1 of 1
4
IsJsonPrimitiveTypeCode(System.TypeCode typeCode) : System.Boolean [static]  100.00% : 4 of 4
100.00% : 2 of 2
100.00% : 1 of 1
2
.cctor() : void [static]  100.00% : 8 of 8
N/A : 0 of 0
100.00% : 1 of 1
1
PopulateObject(System.String value,System.Object target) : void [static]  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
SerializeObject(System.Object value) : System.String [static]  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
SerializeObject(System.Object value,Newtonsoft.Json.Formatting formatting) : System.String [static]  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
SerializeObject(System.Object value,Newtonsoft.Json.Formatting formatting,Newtonsoft.Json.JsonConverter[] converters) : System.String [static]  100.00% : 3 of 3
80.00% : 4 of 5
100.00% : 1 of 1
3
SerializeObject(System.Object value,Newtonsoft.Json.Formatting formatting,Newtonsoft.Json.JsonSerializerSettings settings) : System.String [static]  100.00% : 8 of 8
100.00% : 2 of 2
100.00% : 1 of 1
2
SerializeObject(System.Object value,Newtonsoft.Json.JsonConverter[] converters) : System.String [static]  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
SerializeXmlNode(System.Xml.XmlNode node) : System.String [static]  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
SerializeXmlNode(System.Xml.XmlNode node,Newtonsoft.Json.Formatting formatting) : System.String [static]  100.00% : 3 of 3
100.00% : 1 of 1
100.00% : 1 of 1
1
SerializeXNode(System.Xml.Linq.XObject node) : System.String [static]  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
SerializeXNode(System.Xml.Linq.XObject node,Newtonsoft.Json.Formatting formatting) : System.String [static]  100.00% : 3 of 3
100.00% : 1 of 1
100.00% : 1 of 1
1
ToString(System.Boolean value) : System.String [static]  100.00% : 2 of 2
100.00% : 3 of 3
100.00% : 1 of 1
2
ToString(System.Byte value) : System.String [static]  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
ToString(System.Char value) : System.String [static]  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
ToString(System.DateTime value) : System.String [static]  100.00% : 4 of 4
100.00% : 2 of 2
100.00% : 1 of 1
2
ToString(System.DateTimeOffset value) : System.String [static]  100.00% : 4 of 4
100.00% : 2 of 2
100.00% : 1 of 1
2
ToString(System.Decimal value) : System.String [static]  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
ToString(System.Double value) : System.String [static]  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
ToString(System.Enum value) : System.String [static]  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
ToString(System.Guid value) : System.String [static]  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
ToString(System.Int16 value) : System.String [static]  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
ToString(System.Int32 value) : System.String [static]  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
ToString(System.Int64 value) : System.String [static]  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
ToString(System.Object value) : System.String [static]  100.00% : 25 of 25
100.00% : 6 of 6
100.00% : 1 of 1
20
ToString(System.SByte value) : System.String [static]  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
ToString(System.Single value) : System.String [static]  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
ToString(System.String value) : System.String [static]  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
ToString(System.String value,System.Char delimter) : System.String [static]  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
ToString(System.UInt16 value) : System.String [static]  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
ToString(System.UInt32 value) : System.String [static]  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
ToString(System.UInt64 value) : System.String [static]  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
UniversialTicksToJavaScriptTicks(System.Int64 universialTicks) : System.Int64 [static]  100.00% : 3 of 3
100.00% : 1 of 1
100.00% : 1 of 1
1
WriteDateTimeString(System.IO.TextWriter writer,System.DateTime value) : void [static]  100.00% : 2 of 2
100.00% : 1 of 1
100.00% : 1 of 1
1
WriteDateTimeString(System.IO.TextWriter writer,System.DateTime value,System.TimeSpan offset,System.DateTimeKind kind) : void [static]  100.00% : 16 of 16
100.00% : 8 of 8
100.00% : 1 of 1
5