Exemple #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);
        }
Exemple #2
0
        public void TestBinaryReadObject()
        {
            var bd = new BinaryDeserializer();

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

            Assert.AreEqual(person.Name, ((SamplePerson)p).Name);
        }
Exemple #3
0
 public void TestBinaryReadObject()
 {
     var bd = new BinaryDeserializer();
     binaryStream.Position = 0;
     var p = bd.FromStream(binaryStream);
     Assert.AreEqual(person.Name, ((SamplePerson)p).Name);
 }
Exemple #4
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);
 }