public void Ser() { JavaInstanceFields s = new JavaInstanceFields(); MemoryStream ms=new MemoryStream(); BinaryFormatter binaryFormatter=new BinaryFormatter(); binaryFormatter.Serialize(ms, s); ms.Close(); MemoryStream mso=new MemoryStream(ms.GetBuffer()); var des = (JavaInstanceFields)binaryFormatter.Deserialize(mso); Assert.AreEqual(6, des.byteField); }
public override void Setup() { base.Setup(); testInstance = new JavaInstanceFields(); }