コード例 #1
0
 public virtual void TestStringDecode()
 {
     IData data = new HeapData(ToDataByte(TestDataBytesAll, TestDataAll.Length));
     var actualStr = (string) _serializationService.ToObject<object>(data);
     Assert.AreEqual(TestDataAll, actualStr);
 }
コード例 #2
0
 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);
 }