/// <exception cref="System.Exception"/>
 public virtual void TestReload()
 {
     TestConfigurationSubclass.SubConf conf = new TestConfigurationSubclass.SubConf(true
                                                                                    );
     NUnit.Framework.Assert.IsFalse(conf.IsReloaded());
     Configuration.AddDefaultResource(EmptyConfigurationXml);
     Assert.True(conf.IsReloaded());
     Properties properties = conf.GetProperties();
 }
        public virtual void TestGetProps()
        {
            TestConfigurationSubclass.SubConf conf = new TestConfigurationSubclass.SubConf(true
                                                                                           );
            Properties properties = conf.GetProperties();

            NUnit.Framework.Assert.IsNotNull("hadoop.tmp.dir is not set", properties.GetProperty
                                                 ("hadoop.tmp.dir"));
        }
 /// <exception cref="System.Exception"/>
 public virtual void TestReloadNotQuiet()
 {
     TestConfigurationSubclass.SubConf conf = new TestConfigurationSubclass.SubConf(true
                                                                                    );
     conf.SetQuietMode(false);
     NUnit.Framework.Assert.IsFalse(conf.IsReloaded());
     conf.AddResource("not-a-valid-resource");
     Assert.True(conf.IsReloaded());
     try
     {
         Properties properties = conf.GetProperties();
         Fail("Should not have got here");
     }
     catch (RuntimeException e)
     {
         Assert.True(e.ToString(), e.Message.Contains("not found"));
     }
 }