@@ -15,7 +15,7 @@ public void When_JsonNotArray_ExceptionThrown()
1515 JsonSchema . IsValid ( schema , json ) ;
1616 var exception = Assert . ThrowsException < JsonSchemaException > (
1717 ( ) => JsonAssert . IsValid ( schema , json ) ) ;
18- Assert . AreEqual ( DTYP02 , exception . ErrorCode ) ;
18+ Assert . AreEqual ( DTYP04 , exception . Code ) ;
1919 Console . WriteLine ( exception ) ;
2020 }
2121
@@ -42,7 +42,7 @@ public void When_JsonNotArrayInObject_ExceptionThrown()
4242 JsonSchema . IsValid ( schema , json ) ;
4343 var exception = Assert . ThrowsException < JsonSchemaException > (
4444 ( ) => JsonAssert . IsValid ( schema , json ) ) ;
45- Assert . AreEqual ( DTYP02 , exception . ErrorCode ) ;
45+ Assert . AreEqual ( DTYP04 , exception . Code ) ;
4646 Console . WriteLine ( exception ) ;
4747 }
4848
@@ -61,7 +61,7 @@ public void When_JsonNotArrayInArray_ExceptionThrown()
6161 JsonSchema . IsValid ( schema , json ) ;
6262 var exception = Assert . ThrowsException < JsonSchemaException > (
6363 ( ) => JsonAssert . IsValid ( schema , json ) ) ;
64- Assert . AreEqual ( DTYP02 , exception . ErrorCode ) ;
64+ Assert . AreEqual ( DTYP04 , exception . Code ) ;
6565 Console . WriteLine ( exception ) ;
6666 }
6767
@@ -80,7 +80,7 @@ public void When_NestedJsonNotArrayInArray_ExceptionThrown()
8080 JsonSchema . IsValid ( schema , json ) ;
8181 var exception = Assert . ThrowsException < JsonSchemaException > (
8282 ( ) => JsonAssert . IsValid ( schema , json ) ) ;
83- Assert . AreEqual ( DTYP02 , exception . ErrorCode ) ;
83+ Assert . AreEqual ( DTYP06 , exception . Code ) ;
8484 Console . WriteLine ( exception ) ;
8585 }
8686
@@ -103,7 +103,7 @@ public void When_NestedJsonNotArrayInObject_ExceptionThrown()
103103 JsonSchema . IsValid ( schema , json ) ;
104104 var exception = Assert . ThrowsException < JsonSchemaException > (
105105 ( ) => JsonAssert . IsValid ( schema , json ) ) ;
106- Assert . AreEqual ( DTYP02 , exception . ErrorCode ) ;
106+ Assert . AreEqual ( DTYP06 , exception . Code ) ;
107107 Console . WriteLine ( exception ) ;
108108 }
109109
@@ -116,7 +116,7 @@ public void When_ElementsWithWrongArray_ExceptionThrown()
116116 JsonSchema . IsValid ( schema , json ) ;
117117 var exception = Assert . ThrowsException < JsonSchemaException > (
118118 ( ) => JsonAssert . IsValid ( schema , json ) ) ;
119- Assert . AreEqual ( ELEM01 , exception . ErrorCode ) ;
119+ Assert . AreEqual ( ELEM01 , exception . Code ) ;
120120 Console . WriteLine ( exception ) ;
121121 }
122122
@@ -129,7 +129,7 @@ public void When_NestedElementsWithWrongArrayInArray_ExceptionThrown()
129129 JsonSchema . IsValid ( schema , json ) ;
130130 var exception = Assert . ThrowsException < JsonSchemaException > (
131131 ( ) => JsonAssert . IsValid ( schema , json ) ) ;
132- Assert . AreEqual ( ELEM01 , exception . ErrorCode ) ;
132+ Assert . AreEqual ( ELEM01 , exception . Code ) ;
133133 Console . WriteLine ( exception ) ;
134134 }
135135
@@ -149,7 +149,7 @@ public void When_EnumWithWrongValueInArray_ExceptionThrown()
149149 JsonSchema . IsValid ( schema , json ) ;
150150 var exception = Assert . ThrowsException < JsonSchemaException > (
151151 ( ) => JsonAssert . IsValid ( schema , json ) ) ;
152- Assert . AreEqual ( ENUM02 , exception . ErrorCode ) ;
152+ Assert . AreEqual ( ENUM02 , exception . Code ) ;
153153 Console . WriteLine ( exception ) ;
154154 }
155155
@@ -162,7 +162,7 @@ public void When_InvalidJsonInArray_ExceptionThrown()
162162 //JsonSchema.IsValid(schema, json);
163163 var exception = Assert . ThrowsException < JsonParserException > (
164164 ( ) => JsonAssert . IsValid ( schema , json ) ) ;
165- Assert . AreEqual ( JPRS01 , exception . ErrorCode ) ;
165+ Assert . AreEqual ( JPRS01 , exception . Code ) ;
166166 Console . WriteLine ( exception ) ;
167167 }
168168
@@ -186,7 +186,7 @@ public void When_EmptyArrayInObject_ExceptionThrown()
186186 JsonSchema . IsValid ( schema , json ) ;
187187 var exception = Assert . ThrowsException < JsonSchemaException > (
188188 ( ) => JsonAssert . IsValid ( schema , json ) ) ;
189- Assert . AreEqual ( NEMT02 , exception . ErrorCode ) ;
189+ Assert . AreEqual ( NEMT02 , exception . Code ) ;
190190 Console . WriteLine ( exception ) ;
191191 }
192192}
0 commit comments