public void DeserializeTest1() { var s = SerializeExtension.Serialize("ABCDEFG"); byte[] data = Convert.FromBase64String(s); var d = SerializeExtension.Deserialize(data); Assert.AreEqual("ABCDEFG", d); }
public void SerializeTest() { string obj = "ABCDEFGH"; string actual = SerializeExtension.Serialize(obj); Assert.IsNotNull(actual); var deserialized = SerializeExtension.Deserialize(actual); Assert.IsNotNull(deserialized); Assert.AreEqual(obj, deserialized); }
public void SerializeTest1() { string o = "ABCDEFG"; Assert.IsNotNull(SerializeExtension.Serialize((object)o)); }
public void SerializeNullTest() { Assert.IsNull(SerializeExtension.Serialize(null)); }