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_AddPath2_TypeIsNull() { ConfigurationContext target = new ConfigurationContext(); Type type = null; String path = "vizistata.diagnostics/test"; target.AddPath(type, path); }
public void ConfigurationContext_Unit_IsPathKnown2_True() { ConfigurationContext target = new ConfigurationContext(); String path = "vizistata.diagnostics/test"; target.AddPath<MockConfigurationSection>(path); Boolean expected = true; Type type = typeof(MockConfigurationSection); Boolean actual = target.IsPathKnown(type); Assert.AreEqual(expected, actual); }
public void ConfigurationContext_Unit_AddPath2_TypeHasInvalidBaseType() { ConfigurationContext target = new ConfigurationContext(); Type type = typeof(String); String path = "vizistata.diagnostics/test"; target.AddPath(type, path); }
public void ConfigurationContext_Unit_AddPath2_TypeIsKnown() { ConfigurationContext target = new ConfigurationContext(); Type type = typeof(MockConfigurationSection); String path = "vizistata.diagnostics/test"; target.AddPath(type, path); target.AddPath(type, path); }
public void ConfigurationContext_Unit_AddPath2_PathIsNull() { ConfigurationContext target = new ConfigurationContext(); Type type = typeof(MockConfigurationSection); String path = null; target.AddPath(type, path); }
public void ConfigurationContext_Unit_AddPath2_PathIsInvalid() { ConfigurationContext target = new ConfigurationContext(); Type type = typeof(MockConfigurationSection); String path = "\\This is / not a valid path!"; target.AddPath(type, path); }
public void ConfigurationContext_Unit_AddPath1_TIsKnown() { ConfigurationContext target = new ConfigurationContext(); String path = "vizistata.diagnostics/test"; target.AddPath<MockConfigurationSection>(path); target.AddPath<MockConfigurationSection>(path); }
public void ConfigurationContext_Unit_AddPath1_PathIsNull() { ConfigurationContext target = new ConfigurationContext(); String path = null; target.AddPath<MockConfigurationSection>(path); }
public void ConfigurationContext_Unit_AddPath1_PathIsInvalid() { ConfigurationContext target = new ConfigurationContext(); String path = "\\This is / not a valid path!"; target.AddPath<MockConfigurationSection>(path); }