Esempio n. 1
0
 /// <exception cref="System.Exception"/>
 public virtual void TestReflectInnerClass()
 {
     TestAvroSerialization.InnerRecord before = new TestAvroSerialization.InnerRecord(
         );
     before.x = 10;
     conf.Set(AvroReflectSerialization.AvroReflectPackages, before.GetType().Assembly.
              GetName());
     TestAvroSerialization.InnerRecord after = SerializationTestUtil.TestSerialization
                                                   (conf, before);
     Assert.Equal(before, after);
 }
Esempio 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.InnerRecord other = (TestAvroSerialization.InnerRecord)obj;
     if (x != other.x)
     {
         return(false);
     }
     return(true);
 }