public void DeserializeTest1() { var s = SerializeExtension.Serialize("ABCDEFG"); byte[] data = Convert.FromBase64String(s); var d = SerializeExtension.Deserialize(data); Assert.AreEqual("ABCDEFG", d); }
public void DeSerializeNullTest1() { var d = SerializeExtension.Deserialize((byte[])null); Assert.IsNull(d); var s = SerializeExtension.Deserialize((string)null); Assert.IsNull(s); }
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 DeSerializeNullTest() { var d = SerializeExtension.Deserialize(string.Empty); Assert.IsNull(d); }