public void ConfigurationContext_System_GetSection1_TIsMappedToAnotherType() { ConfigurationContext target = new ConfigurationContext(); String path = "vizistata.diagnostics/test"; target.AddPath<System.Net.Configuration.AuthenticationModulesSection>(path); target.GetSection<System.Net.Configuration.AuthenticationModulesSection>(); }
public void ConfigurationContext_System_GetSection1_Optimal() { ConfigurationContext target = new ConfigurationContext(); String path = "vizistata.diagnostics/test"; target.AddPath<MockConfigurationSection>(path); MockConfigurationSection actual = target.GetSection<MockConfigurationSection>(); Assert.IsNotNull(actual); }
public void ConfigurationContext_Unit_GetSection2_TypeIsNull() { ConfigurationContext target = new ConfigurationContext(); Type type = null; target.GetSection(type); }
public void ConfigurationContext_Unit_GetSection2_TypeIsAbstract() { ConfigurationContext target = new ConfigurationContext(); Type type = typeof(ConfigurationSection); target.GetSection(type); }
public void ConfigurationContext_Unit_GetSection2_TypeIsNotKnown() { ConfigurationContext target = new ConfigurationContext(); Type type = typeof(MockConfigurationSection); target.GetSection(type); }
public void ConfigurationContext_Unit_GetSection2_TypeHasInvalidBaseType() { ConfigurationContext target = new ConfigurationContext(); Type type = typeof(Object); target.GetSection(type); }
public void ConfigurationContext_Unit_GetSection1_TIsNotKnown() { ConfigurationContext target = new ConfigurationContext(); target.GetSection<MockConfigurationSection>(); }
public void ConfigurationContext_System_GetSection4_PathIsNull() { ConfigurationContext target = new ConfigurationContext(); String path = null; target.GetSection(path); }
public void ConfigurationContext_System_GetSection4_PathIsInvalid() { ConfigurationContext target = new ConfigurationContext(); String path = "\\This is / not a valid path!"; target.GetSection(path); }
public void ConfigurationContext_System_GetSection4_ConfigurationSectionNotCached() { ConfigurationContext target = new ConfigurationContext(true); String path = "vizistata.diagnostics/test"; ConfigurationSection actual = target.GetSection(path); Assert.IsNotNull(actual); }