//ignore
 /// <exception cref="System.Exception"/>
 public virtual void TestGet()
 {
     TestGenericWritable.Foo foo = new TestGenericWritable.Foo();
     TestGenericWritable.FooGenericWritable generic = new TestGenericWritable.FooGenericWritable
                                                          ();
     generic.Set(foo);
     Assert.Equal(foo, generic.Get());
 }
 /// <exception cref="System.Exception"/>
 public virtual void TestBazWritable()
 {
     System.Console.Out.WriteLine("Testing for GenericWritable to find class names");
     TestGenericWritable.FooGenericWritable generic = new TestGenericWritable.FooGenericWritable
                                                          ();
     generic.SetConf(conf);
     TestGenericWritable.Baz baz = new TestGenericWritable.Baz();
     generic.Set(baz);
     TestWritable.TestWritable(generic, conf);
 }
 /// <exception cref="System.Exception"/>
 public virtual void TestFooWritable()
 {
     System.Console.Out.WriteLine("Testing Writable wrapped in GenericWritable");
     TestGenericWritable.FooGenericWritable generic = new TestGenericWritable.FooGenericWritable
                                                          ();
     generic.SetConf(conf);
     TestGenericWritable.Foo foo = new TestGenericWritable.Foo();
     generic.Set(foo);
     TestWritable.TestWritable(generic);
 }
 /// <exception cref="System.Exception"/>
 public virtual void TestSet()
 {
     TestGenericWritable.Foo foo = new TestGenericWritable.Foo();
     TestGenericWritable.FooGenericWritable generic = new TestGenericWritable.FooGenericWritable
                                                          ();
     //exception should not occur
     generic.Set(foo);
     try
     {
         //exception should occur, since IntWritable is not registered
         generic = new TestGenericWritable.FooGenericWritable();
         generic.Set(new IntWritable(1));
         Fail("Generic writable should have thrown an exception for a Writable not registered"
              );
     }
     catch (RuntimeException)
     {
     }
 }
 /// <exception cref="System.Exception"/>
 public virtual void TestBarWritable()
 {
     System.Console.Out.WriteLine("Testing Writable, Configurable wrapped in GenericWritable"
                                  );
     TestGenericWritable.FooGenericWritable generic = new TestGenericWritable.FooGenericWritable
                                                          ();
     generic.SetConf(conf);
     TestGenericWritable.Bar bar = new TestGenericWritable.Bar();
     bar.SetConf(conf);
     generic.Set(bar);
     //test writing generic writable
     TestGenericWritable.FooGenericWritable after = (TestGenericWritable.FooGenericWritable
                                                     )TestWritable.TestWritable(generic, conf);
     //test configuration
     System.Console.Out.WriteLine("Testing if Configuration is passed to wrapped classes"
                                  );
     Assert.True(after.Get() is Configurable);
     NUnit.Framework.Assert.IsNotNull(((Configurable)after.Get()).GetConf());
 }