Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 private static void AssertAreNotEqual(JValue expected, JValue actual)
 {
     Assert.AreNotEqual(expected, actual);
     Assert.AreNotEqual(0, JValue.Compare(expected, actual));
 }