private static JValue Parse(string source) { var json = JValue.Parse(source); Assert.AreEqual(0, JValue.Compare(json, json)); Assert.AreEqual(0, JValue.Compare(json, JValue.Parse(json.Serialize(0)))); Assert.AreEqual(0, JValue.Compare(json, JValue.Parse(json.Serialize(2)))); return(json); }
private static void AssertAreNotEqual(JValue expected, JValue actual) { Assert.AreNotEqual(expected, actual); Assert.AreNotEqual(0, JValue.Compare(expected, actual)); }