public virtual void TestStringDecode() { IData data = new HeapData(ToDataByte(TestDataBytesAll, TestDataAll.Length)); var actualStr = (string) _serializationService.ToObject<object>(data); Assert.AreEqual(TestDataAll, actualStr); }
public virtual void TestStringAllCharLetterDecode() { var allstr = new string(AllChars); var expected = Encoding.UTF8.GetBytes(allstr); IData data = new HeapData(ToDataByte(expected, allstr.Length)); var actualStr = (string) _serializationService.ToObject<object>(data); Assert.AreEqual(allstr, actualStr); }