public void teste2() { teststruct tt = new teststruct(); tt.t = 10; SerializatorMachine SerializatorMachine = new SerializatorMachine(); SerializatorMachine.Serialize(tt, "teste2.xml", Encoding.Default); teststruct ob = (teststruct) SerializatorMachine.Desserialize("teste2.xml"); System.Diagnostics.Debug.Assert(ob.t== 10); }
public void teste2() { teststruct tt = new teststruct(); tt.t = 10; SerializatorMachine SerializatorMachine = new SerializatorMachine(); SerializatorMachine.Serialize(tt, "teste2.xml", Encoding.Default); teststruct ob = (teststruct)SerializatorMachine.Desserialize("teste2.xml"); System.Diagnostics.Debug.Assert(ob.t == 10); }