1- using RelogicLabs . JsonSchema . Tree ;
2- using RelogicLabs . JsonSchema . Utilities ;
3- using static RelogicLabs . JsonSchema . Message . MessageFormatter ;
4- using static RelogicLabs . JsonSchema . Tree . TreeType ;
1+ using RelogicLabs . JSchema . Tree ;
2+ using RelogicLabs . JSchema . Utilities ;
3+ using static RelogicLabs . JSchema . Message . MessageFormatter ;
4+ using static RelogicLabs . JSchema . Tree . TreeType ;
55
6- namespace RelogicLabs . JsonSchema ;
6+ namespace RelogicLabs . JSchema ;
77
88/// <summary>
9- /// Provides assertion functionalities to validate JSON document against a Schema or JSON.
9+ /// Provides assertion functionalities to validate JSON document against a JSchema or JSON document .
1010/// </summary>
1111public class JsonAssert
1212{
@@ -15,18 +15,18 @@ public class JsonAssert
1515
1616 /// <summary>
1717 /// Initializes a new instance of the <see cref="JsonAssert"/> class for the
18- /// specified Schema string.
18+ /// specified JSchema string.
1919 /// </summary>
20- /// <param name="schema">A Schema string for validation or conformation.</param>
20+ /// <param name="schema">A JSchema string for validation or conformation.</param>
2121 public JsonAssert ( string schema ) : this ( schema , SCHEMA_TREE ) { }
2222
2323 /// <summary>
2424 /// Initializes a new instance of the <see cref="JsonAssert"/> class for the specified
25- /// <paramref name="expected"/> string which can be either a Schema or a JSON representation.
25+ /// <paramref name="expected"/> string which can be either a JSchema or a JSON representation.
2626 /// </summary>
27- /// <param name="expected">An expected Schema or JSON string for validation or conformation.</param>
27+ /// <param name="expected">An expected JSchema or JSON string for validation or conformation.</param>
2828 /// <param name="type">The type of string provided by <paramref name="expected"/>, indicating
29- /// whether it represents a Schema or JSON. Use <see cref="TreeType.SCHEMA_TREE"/> for Schema
29+ /// whether it represents a JSchema or JSON. Use <see cref="TreeType.SCHEMA_TREE"/> for JSchema
3030 /// and <see cref="TreeType.JSON_TREE"/> for JSON.</param>
3131 public JsonAssert ( string expected , TreeType type )
3232 {
@@ -43,24 +43,24 @@ public JsonAssert(string expected, TreeType type)
4343 }
4444
4545 /// <summary>
46- /// Tests whether the input JSON string conforms to the expected Schema or JSON
46+ /// Tests whether the input JSON string conforms to the expected JSchema or JSON
4747 /// specified in the <see cref="JsonAssert"/> constructor.
4848 /// </summary>
4949 /// <param name="json">The actual JSON to conform or validate.</param>
5050 public void IsValid ( string json )
5151 {
5252 Runtime . Clear ( ) ;
5353 JsonTree jsonTree = new ( Runtime , json ) ;
54- DebugUtilities . Print ( ExpectedTree , jsonTree ) ;
54+ LogHelper . Debug ( ExpectedTree , jsonTree ) ;
5555 if ( ! ExpectedTree . Match ( jsonTree ) )
5656 throw new InvalidOperationException ( "Invalid runtime state" ) ;
5757 }
5858
5959 /// <summary>
60- /// Tests whether the specified JSON string conforms to the given Schema string
61- /// and throws an exception if the JSON string does not conform to the Schema .
60+ /// Tests whether the specified JSON string conforms to the given JSchema string
61+ /// and throws an exception if the JSON string does not conform to the JSchema .
6262 /// </summary>
63- /// <param name="schema">The expected Schema to conform or validate.</param>
63+ /// <param name="schema">The expected JSchema to conform or validate.</param>
6464 /// <param name="json">The actual JSON to conform or validate.</param>
6565 public static void IsValid ( string schema , string json )
6666 => new JsonAssert ( schema ) . IsValid ( json ) ;
0 commit comments