public void TestToJSON() { var tclass = TestClasses.CreateTestClass(); var item = JSON.ToJSON(tclass); var control = TestClasses.CreateTestClassJson(); Assert.IsTrue(item == control); }
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 TestSerialize() { var serialized = TestClasses.CreateTestClassJson().ToString(); Assert.IsTrue(!string.IsNullOrEmpty(serialized)); }