示例#1
0
        public void TestBinaryRead()
        {
            var          bd = new BinaryDeserializer();
            SamplePerson p  = new SamplePerson();

            binaryStream.Position = 0;
            bd.FromStream(p, binaryStream);
            Assert.AreEqual(person.Name, p.Name);
        }
示例#2
0
        public void TestBinaryReadObject()
        {
            var bd = new BinaryDeserializer();

            binaryStream.Position = 0;
            var p = bd.FromStream(binaryStream);

            Assert.AreEqual(person.Name, ((SamplePerson)p).Name);
        }
示例#3
0
文件: Speed.cs 项目: klenin/Yuzu
 public void TestBinaryReadObject()
 {
     var bd = new BinaryDeserializer();
     binaryStream.Position = 0;
     var p = bd.FromStream(binaryStream);
     Assert.AreEqual(person.Name, ((SamplePerson)p).Name);
 }
示例#4
0
文件: Speed.cs 项目: klenin/Yuzu
 public void TestBinaryRead()
 {
     var bd = new BinaryDeserializer();
     SamplePerson p = new SamplePerson();
     binaryStream.Position = 0;
     bd.FromStream(p, binaryStream);
     Assert.AreEqual(person.Name, p.Name);
 }