Ejemplo n.º 1
0
 public void op_Set_T_whenConfigurationSectionHandler()
 {
     try
     {
         var expected = new DummyConfigurationSectionHandler();
         Config.Set(expected);
         Assert.Same(expected, Config.SectionHandler <DummyConfigurationSectionHandler>("example"));
     }
     finally
     {
         Config.Clear <DummyConfigurationSectionHandler>();
     }
 }
Ejemplo n.º 2
0
 public void op_Set_T_whenConfigurationSectionHandler()
 {
     try
     {
         var expected = new DummyConfigurationSectionHandler();
         Config.Set(expected);
         Assert.Same(expected, Config.SectionHandler<DummyConfigurationSectionHandler>("example"));
     }
     finally
     {
         Config.Clear<DummyConfigurationSectionHandler>();
     }
 }