Exemplo n.º 1
0
 /// <exception cref="System.Exception"/>
 public virtual void TestReflect()
 {
     TestAvroSerialization.RefSerializable before = new TestAvroSerialization.RefSerializable
                                                        ();
     before.x = 10;
     TestAvroSerialization.RefSerializable after = SerializationTestUtil.TestSerialization
                                                       (conf, before);
     Assert.Equal(before, after);
 }
Exemplo n.º 2
0
 public override bool Equals(object obj)
 {
     if (this == obj)
     {
         return(true);
     }
     if (obj == null)
     {
         return(false);
     }
     if (GetType() != obj.GetType())
     {
         return(false);
     }
     TestAvroSerialization.RefSerializable other = (TestAvroSerialization.RefSerializable
                                                    )obj;
     if (x != other.x)
     {
         return(false);
     }
     return(true);
 }