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>(); } }
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>(); } }