public void teste4()
 {
     partialserialize s = new partialserialize();
     s.ser = 10;
     s.noser = 20;
     SerializatorMachine SerializatorMachine = new SerializatorMachine();
     SerializatorMachine.Serialize(s, "teste4.xml", Encoding.Default);
     partialserialize ob = SerializatorMachine.Desserialize<partialserialize>("teste4.xml");
     System.Diagnostics.Debug.Assert(ob.noser != 20);
     System.Diagnostics.Debug.Assert(ob.noser == 0);
     System.Diagnostics.Debug.Assert(ob.ser == 10);
 }
        public void teste4()
        {
            partialserialize s = new partialserialize();

            s.ser   = 10;
            s.noser = 20;
            SerializatorMachine SerializatorMachine = new SerializatorMachine();

            SerializatorMachine.Serialize(s, "teste4.xml", Encoding.Default);
            partialserialize ob = SerializatorMachine.Desserialize <partialserialize>("teste4.xml");

            System.Diagnostics.Debug.Assert(ob.noser != 20);
            System.Diagnostics.Debug.Assert(ob.noser == 0);
            System.Diagnostics.Debug.Assert(ob.ser == 10);
        }