public void TestFromJSON() { var original = TestClasses.CreateTestClass(); var control = TestClasses.CreateTestClassJson(); var tclass = JSON.FromJSON <TestClasses.TestClass>(control); Assert.IsTrue(original.Equals(tclass)); }
public void TestToJSON() { var tclass = TestClasses.CreateTestClass(); var item = JSON.ToJSON(tclass); var control = TestClasses.CreateTestClassJson(); Assert.IsTrue(item == control); }