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