Json.NET
Code Coverage Statistics for Class

Newtonsoft.Json.Tests.Serialization.JsonSerializerTest

Symbol Coverage: 95.80% (981 of 1024)

Branch Coverage: 82.19% (120 of 146)

Method Coverage: 97.86% (137 of 140)

Cyclomatic Complexity Avg: 1.04 Max:4

Methods: 140


Methods

Method Symbol Coverage Branch Coverage Method Coverage Cyclomatic Complexity
GenericListAndDictionaryInterfaceProperties() : void  0.00% : 0 of 12
0.00% : 0 of 1
0.00% : 0 of 1
1
GetPerson() : Newtonsoft.Json.Tests.TestObjects.Person  0.00% : 0 of 3
0.00% : 0 of 1
0.00% : 0 of 1
1
WriteJsonToFile() : void  0.00% : 0 of 8
0.00% : 0 of 4
0.00% : 0 of 1
4
BadJsonPropertyClassSerialize() : void  50.00% : 1 of 2
0.00% : 0 of 1
100.00% : 1 of 1
1
DeserializeEnsureTypeEmptyStringToIntError() : void  50.00% : 1 of 2
0.00% : 0 of 1
100.00% : 1 of 1
1
DeserializeEnsureTypeNullToIntError() : void  50.00% : 1 of 2
0.00% : 0 of 1
100.00% : 1 of 1
1
DeserializePropertySetError() : void  50.00% : 1 of 2
0.00% : 0 of 1
100.00% : 1 of 1
1
SerializePropertyGetError() : void  50.00% : 1 of 2
0.00% : 0 of 1
100.00% : 1 of 1
1
CannotDeserializeArrayIntoObject() : void  66.67% : 2 of 3
0.00% : 0 of 1
100.00% : 1 of 1
1
CannotDeserializeObjectIntoArray() : void  66.67% : 2 of 3
0.00% : 0 of 1
100.00% : 1 of 1
1
CannotPopulateArrayIntoObject() : void  66.67% : 2 of 3
0.00% : 0 of 1
100.00% : 1 of 1
1
CannotPopulateObjectIntoArray() : void  66.67% : 2 of 3
0.00% : 0 of 1
100.00% : 1 of 1
1
DeserializeDictionaryWithNoDefaultConstructor() : void  66.67% : 2 of 3
0.00% : 0 of 1
100.00% : 1 of 1
1
DeserializePersonKeyedDictionary() : void  66.67% : 2 of 3
0.00% : 0 of 1
100.00% : 1 of 1
1
FailWhenClassWithNoDefaultConstructorHasMultipleConstructorsWithArguments() : void  66.67% : 2 of 3
0.00% : 0 of 1
100.00% : 1 of 1
1
IncompatibleJsonAttributeShouldThrow() : void  66.67% : 2 of 3
0.00% : 0 of 1
100.00% : 1 of 1
1
InvalidBackslash() : void  66.67% : 2 of 3
0.00% : 0 of 1
100.00% : 1 of 1
1
RequiredMembersClassMissingRequiredProperty() : void  66.67% : 2 of 3
0.00% : 0 of 1
100.00% : 1 of 1
1
RequiredMembersClassNullRequiredValueProperty() : void  66.67% : 2 of 3
0.00% : 0 of 1
100.00% : 1 of 1
1
JsonPropertyWithHandlingValues_ReferenceLoopError() : void  75.00% : 3 of 4
0.00% : 0 of 1
100.00% : 1 of 1
1
DeserializeInterfaceProperty() : void  80.00% : 4 of 5
0.00% : 0 of 1
100.00% : 1 of 1
1
SerializeRefAdditionalContent() : void  90.00% : 9 of 10
0.00% : 0 of 1
100.00% : 1 of 1
1
SerializeRefBadType() : void  90.00% : 9 of 10
0.00% : 0 of 1
100.00% : 1 of 1
1
AnonymousObjectSerialization() : void  100.00% : 12 of 12
100.00% : 1 of 1
100.00% : 1 of 1
1
AnonymousPlusLinqToSql() : void  100.00% : 4 of 4
100.00% : 1 of 1
100.00% : 1 of 1
1
BackslashEqivilence() : void  100.00% : 10 of 10
100.00% : 1 of 1
100.00% : 1 of 1
1
CanDeserializeIntArray_WhenArrayIsFirstPropertyInJson() : void  100.00% : 9 of 9
100.00% : 1 of 1
100.00% : 1 of 1
1
CanDeserializeIntArrayWhenNotFirstPropertyInJson() : void  100.00% : 9 of 9
100.00% : 1 of 1
100.00% : 1 of 1
1
CanDeserializeSerializedJson() : void  100.00% : 15 of 15
100.00% : 1 of 1
100.00% : 1 of 1
1
ComplexValuesInObjectArray() : void  100.00% : 12 of 12
100.00% : 1 of 1
100.00% : 1 of 1
1
ConstructorCaseSensitivity() : void  100.00% : 7 of 7
100.00% : 1 of 1
100.00% : 1 of 1
1
ConstructorReadonlyFieldsTest() : void  100.00% : 7 of 7
100.00% : 1 of 1
100.00% : 1 of 1
1
ConverterAttributeExample() : void  100.00% : 5 of 5
100.00% : 1 of 1
100.00% : 1 of 1
1
CustomCollectionSerialization() : void  100.00% : 9 of 9
100.00% : 1 of 1
100.00% : 1 of 1
1
DataContractJsonSerializerTest() : void  100.00% : 15 of 15
100.00% : 1 of 1
100.00% : 1 of 1
1
DateTimeOffset() : void  100.00% : 4 of 4
100.00% : 1 of 1
100.00% : 1 of 1
1
DateTimeTest() : void  100.00% : 10 of 10
100.00% : 1 of 1
100.00% : 1 of 1
1
DeserializeBaseReferenceWithDerivedValue() : void  100.00% : 12 of 12
100.00% : 1 of 1
100.00% : 1 of 1
1
DeserializeBestMatchPropertyCase() : void  100.00% : 8 of 8
100.00% : 1 of 1
100.00% : 1 of 1
1
DeserializeByteArray() : void  100.00% : 10 of 10
100.00% : 1 of 1
100.00% : 1 of 1
1
DeserializeClassWithInheritedProtectedMember() : void  100.00% : 29 of 29
100.00% : 1 of 1
100.00% : 1 of 1
1
DeserializeComplexKeyValuePair() : void  100.00% : 13 of 13
100.00% : 1 of 1
100.00% : 1 of 1
1
DeserializeDictionaryInterface() : void  100.00% : 6 of 6
100.00% : 1 of 1
100.00% : 1 of 1
1
DeserializeDictionaryInterfaceWithExistingValues() : void  100.00% : 13 of 13
100.00% : 1 of 1
100.00% : 1 of 1
1
DeserializeEmptyString() : void  100.00% : 4 of 4
100.00% : 1 of 1
100.00% : 1 of 1
1
DeserializeEmptyStringToNullableDateTime() : void  100.00% : 4 of 4
100.00% : 1 of 1
100.00% : 1 of 1
1
DeserializeEnumerableAsObject() : void  100.00% : 7 of 7
100.00% : 1 of 1
100.00% : 1 of 1
1
DeserializeExistingGenericList() : void  100.00% : 8 of 8
100.00% : 1 of 1
100.00% : 1 of 1
1
DeserializeGenericDictionary() : void  100.00% : 8 of 8
100.00% : 1 of 1
100.00% : 1 of 1
1
DeserializeGenericList() : void  100.00% : 8 of 8
100.00% : 1 of 1
100.00% : 1 of 1
1
DeserializeGoogleGeoCode() : void  100.00% : 3 of 3
100.00% : 1 of 1
100.00% : 1 of 1
1
DeserializeIgnoredPropertyInConstructor() : void  100.00% : 6 of 6
100.00% : 1 of 1
100.00% : 1 of 1
1
DeserializeInt64ToNullableDouble() : void  100.00% : 4 of 4
100.00% : 1 of 1
100.00% : 1 of 1
1
DeserializeJaggedArray() : void  100.00% : 11 of 11
100.00% : 1 of 1
100.00% : 1 of 1
1
DeserializeJavaScriptDate() : void  100.00% : 17 of 17
100.00% : 1 of 1
100.00% : 1 of 1
1
DeserializeJsonRaw() : void  100.00% : 6 of 6
100.00% : 1 of 1
100.00% : 1 of 1
1
DeserializeNullable() : void  100.00% : 5 of 5
100.00% : 1 of 1
100.00% : 1 of 1
1
DeserializeNullableListWithNulls() : void  100.00% : 6 of 6
100.00% : 1 of 1
100.00% : 1 of 1
1
DeserializeNullableMember() : void  100.00% : 12 of 12
100.00% : 1 of 1
100.00% : 1 of 1
1
DeserializeObjectSetOnlyProperty() : void  100.00% : 7 of 7
100.00% : 1 of 1
100.00% : 1 of 1
1
DeserializeOptInClasses() : void  100.00% : 3 of 3
100.00% : 1 of 1
100.00% : 1 of 1
1
DeserializePopulateDictionaryAndList() : void  100.00% : 11 of 11
100.00% : 1 of 1
100.00% : 1 of 1
1
DeserializePropertiesOnToNonDefaultConstructor() : void  100.00% : 8 of 8
100.00% : 1 of 1
100.00% : 1 of 1
1
DeserializeSimpleKeyValuePair() : void  100.00% : 12 of 12
100.00% : 1 of 1
100.00% : 1 of 1
1
DeserializeToObjectProperty() : void  100.00% : 4 of 4
100.00% : 1 of 1
100.00% : 1 of 1
1
DeserializeUsingNonDefaultConstructorWithLeftOverValues() : void  100.00% : 7 of 7
100.00% : 1 of 1
100.00% : 1 of 1
1
EnumTest() : void  100.00% : 5 of 5
100.00% : 1 of 1
100.00% : 1 of 1
1
FullClientMapSerialization() : void  100.00% : 4 of 4
100.00% : 1 of 1
100.00% : 1 of 1
1
GenericAbstractProperty() : void  100.00% : 3 of 3
100.00% : 1 of 1
100.00% : 1 of 1
1
GoogleSearchAPI() : void  100.00% : 5 of 5
100.00% : 1 of 1
100.00% : 1 of 1
1
GuidTest() : void  100.00% : 6 of 6
100.00% : 1 of 1
100.00% : 1 of 1
1
HashtableDeserialization() : void  100.00% : 4 of 4
100.00% : 1 of 1
100.00% : 1 of 1
1
IgnoreIndexedProperties() : void  100.00% : 9 of 9
100.00% : 1 of 1
100.00% : 1 of 1
1
InheritedListSerialize() : void  100.00% : 10 of 10
100.00% : 1 of 1
100.00% : 1 of 1
1
JRawValue() : void  100.00% : 5 of 5
100.00% : 1 of 1
100.00% : 1 of 1
1
JsonConvertSerializer() : void  100.00% : 6 of 6
100.00% : 1 of 1
100.00% : 1 of 1
1
JsonIgnoreAttributeOnClassTest() : void  100.00% : 6 of 6
100.00% : 1 of 1
100.00% : 1 of 1
1
JsonIgnoreAttributeTest() : void  100.00% : 6 of 6
100.00% : 1 of 1
100.00% : 1 of 1
1
JsonPropertyClassSerialize() : void  100.00% : 9 of 9
100.00% : 1 of 1
100.00% : 1 of 1
1
JsonPropertyWithHandlingValues() : void  100.00% : 8 of 8
100.00% : 1 of 1
100.00% : 1 of 1
1
NestedInsideOuterObject() : void  100.00% : 8 of 8
100.00% : 1 of 1
100.00% : 1 of 1
1
NonStringKeyDictionary() : void  100.00% : 8 of 8
100.00% : 1 of 1
100.00% : 1 of 1
1
ObjectCreationHandlingReplace() : void  100.00% : 7 of 7
100.00% : 1 of 1
100.00% : 1 of 1
1
OptInClassMetadataSerialization() : void  100.00% : 11 of 11
100.00% : 1 of 1
100.00% : 1 of 1
1
PartialClassDeserialize() : void  100.00% : 10 of 10
100.00% : 1 of 1
100.00% : 1 of 1
1
PersonTypedObjectDeserialization() : void  100.00% : 7 of 7
100.00% : 1 of 1
100.00% : 1 of 1
1
PrimitiveValuesInObjectArray() : void  100.00% : 8 of 8
100.00% : 1 of 1
100.00% : 1 of 1
1
ReadOnlyCollectionSerialize() : void  100.00% : 5 of 5
100.00% : 1 of 1
100.00% : 1 of 1
1
RequiredMembersClass() : void  100.00% : 7 of 7
100.00% : 1 of 1
100.00% : 1 of 1
1
RequiredMembersClassWithNullValues() : void  100.00% : 6 of 6
100.00% : 1 of 1
100.00% : 1 of 1
1
RoleTransferTest() : void  100.00% : 6 of 6
100.00% : 1 of 1
100.00% : 1 of 1
1
SerializeArrayAsArrayList() : void  100.00% : 6 of 6
100.00% : 1 of 1
100.00% : 1 of 1
1
SerializeClassWithInheritedProtectedMember() : void  100.00% : 7 of 7
100.00% : 1 of 1
100.00% : 1 of 1
1
SerializeConverableObjects() : void  100.00% : 7 of 7
100.00% : 1 of 1
100.00% : 1 of 1
1
SerializeDataContractPrivateMembers() : void  100.00% : 7 of 7
100.00% : 1 of 1
100.00% : 1 of 1
1
SerializeDeserializeDictionaryKey() : void  100.00% : 8 of 8
100.00% : 1 of 1
100.00% : 1 of 1
1
SerializeDeserializeGetOnlyProperty() : void  100.00% : 5 of 5
100.00% : 1 of 1
100.00% : 1 of 1
1
SerializeDeserializeSetOnlyProperty() : void  100.00% : 4 of 4
100.00% : 1 of 1
100.00% : 1 of 1
1
SerializeDeserializeXmlNodeProperties() : void  100.00% : 10 of 10
100.00% : 1 of 1
100.00% : 1 of 1
1
SerializeDeserializeXNodeProperties() : void  100.00% : 11 of 11
100.00% : 1 of 1
100.00% : 1 of 1
1
SerializeEnumerableAsObject() : void  100.00% : 4 of 4
100.00% : 1 of 1
100.00% : 1 of 1
1
SerializeFragment() : void  100.00% : 13 of 13
100.00% : 4 of 4
100.00% : 1 of 1
3
SerializeGenericList() : void  100.00% : 8 of 8
100.00% : 1 of 1
100.00% : 1 of 1
1
SerializeGenericListOfStrings() : void  100.00% : 7 of 7
100.00% : 1 of 1
100.00% : 1 of 1
1
SerializeGuidKeyedDictionary() : void  100.00% : 6 of 6
100.00% : 1 of 1
100.00% : 1 of 1
1
SerializeHashSet() : void  100.00% : 8 of 8
100.00% : 1 of 1
100.00% : 1 of 1
1
SerializeISerializableTestObject() : void  100.00% : 18 of 18
100.00% : 1 of 1
100.00% : 1 of 1
1
SerializeJaggedArray() : void  100.00% : 7 of 7
100.00% : 1 of 1
100.00% : 1 of 1
1
SerializeJsonRaw() : void  100.00% : 4 of 4
100.00% : 1 of 1
100.00% : 1 of 1
1
SerializeListWithJsonConverter() : void  100.00% : 12 of 12
100.00% : 1 of 1
100.00% : 1 of 1
1
SerializeMemberGenericList() : void  100.00% : 13 of 13
100.00% : 1 of 1
100.00% : 1 of 1
1
SerializeNonIDictionary() : void  100.00% : 8 of 8
100.00% : 1 of 1
100.00% : 1 of 1
1
SerializeNonPublicBaseJsonProperties() : void  100.00% : 4 of 4
100.00% : 1 of 1
100.00% : 1 of 1
1
SerializeNull() : void  100.00% : 3 of 3
100.00% : 1 of 1
100.00% : 1 of 1
1
SerializeNullableArray() : void  100.00% : 8 of 8
100.00% : 1 of 1
100.00% : 1 of 1
1
SerializeObject() : void  100.00% : 3 of 3
100.00% : 1 of 1
100.00% : 1 of 1
1
SerializePersonKeyedDictionary() : void  100.00% : 6 of 6
100.00% : 1 of 1
100.00% : 1 of 1
1
SerializerShouldUseClassConverter() : void  100.00% : 6 of 6
100.00% : 1 of 1
100.00% : 1 of 1
1
SerializerShouldUseClassConverterOverArgumentConverter() : void  100.00% : 6 of 6
100.00% : 1 of 1
100.00% : 1 of 1
1
SerializerShouldUseMemberConverter() : void  100.00% : 8 of 8
100.00% : 1 of 1
100.00% : 1 of 1
1
SerializerShouldUseMemberConverterOverArgumentConverter() : void  100.00% : 8 of 8
100.00% : 1 of 1
100.00% : 1 of 1
1
SerializerShouldUseMemberConverterOverClassAndArgumentConverter() : void  100.00% : 9 of 9
100.00% : 1 of 1
100.00% : 1 of 1
1
SerializeStack() : void  100.00% : 7 of 7
100.00% : 1 of 1
100.00% : 1 of 1
1
SerializeStruct() : void  100.00% : 10 of 10
100.00% : 1 of 1
100.00% : 1 of 1
1
SerializeTypeProperty() : void  100.00% : 13 of 13
100.00% : 1 of 1
100.00% : 1 of 1
1
ShouldSerializeExample() : void  100.00% : 9 of 9
100.00% : 1 of 1
100.00% : 1 of 1
1
ShouldSerializeTest() : void  100.00% : 12 of 12
100.00% : 1 of 1
100.00% : 1 of 1
1
StringAppenderConverterTest() : void  100.00% : 5 of 5
100.00% : 1 of 1
100.00% : 1 of 1
1
StringListAppenderConverterTest() : void  100.00% : 7 of 7
100.00% : 1 of 1
100.00% : 1 of 1
1
TestEscapeDictionaryStrings() : void  100.00% : 9 of 9
100.00% : 1 of 1
100.00% : 1 of 1
1
TestMethodExecutorObject() : void  100.00% : 12 of 12
100.00% : 1 of 1
100.00% : 1 of 1
1
TimeSpanTest() : void  100.00% : 6 of 6
100.00% : 1 of 1
100.00% : 1 of 1
1
TorrentDeserializeTest() : void  100.00% : 7 of 7
100.00% : 1 of 1
100.00% : 1 of 1
1
TypedHashtableDeserialization() : void  100.00% : 5 of 5
100.00% : 1 of 1
100.00% : 1 of 1
1
TypedObjectDeserialization() : void  100.00% : 14 of 14
100.00% : 1 of 1
100.00% : 1 of 1
1
TypedObjectDeserializationWithComments() : void  100.00% : 9 of 9
100.00% : 1 of 1
100.00% : 1 of 1
1
Unicode() : void  100.00% : 7 of 7
100.00% : 1 of 1
100.00% : 1 of 1
1
UriSerialization() : void  100.00% : 6 of 6
100.00% : 1 of 1
100.00% : 1 of 1
1
WriteJsonDates() : void  100.00% : 8 of 8
100.00% : 1 of 1
100.00% : 1 of 1
1
.ctor() : void  N/A : 0 of 0
100.00% : 1 of 1
100.00% : 1 of 1
1