20 references to Assert
System.Configuration (20)
parent\misc\ConfigPathUtility.cs (1)
110
Debug.
Assert
(index != configPath.Length - 1);
System\Configuration\BaseConfigurationRecord.cs (6)
2742
Debug.
Assert
(UrlPath.IsSubpath(_parent.ConfigPath, input.SectionXmlInfo.TargetConfigPath));
2818
Debug.
Assert
(FindFactoryRecord(configKey, true) != null);
2839
Debug.
Assert
(mode != OverrideMode.Inherit); // Remember that the default is never Inherit
2855
Debug.
Assert
(mode != OverrideMode.Inherit);
4535
Debug.
Assert
(x.SectionXmlInfo.ConfigKey == y.SectionXmlInfo.ConfigKey);
4559
Debug.
Assert
(StringUtil.EqualsIgnoreCase(yTargetConfigPath, xTargetConfigPath));
System\Configuration\ConfigurationElement.cs (5)
864
Debug.
Assert
((type != null) && ( validator != null));
865
Debug.
Assert
(typeof(ConfigurationElement).IsAssignableFrom(type));
877
Debug.
Assert
( !s_perTypeValidators.ContainsKey(type));
889
Debug.
Assert
(root != null);
903
Debug.
Assert
(elem != null);
System\Configuration\MgmtConfigurationRecord.cs (2)
438
Debug.
Assert
(input != null);
2828
Debug.
Assert
(LocationSubPath == null);
System\Configuration\OverrideMode.cs (3)
171
Debug.
Assert
((x._mode & ApiDefinedAny) != 0);
244
Debug.
Assert
(useLegacy || (_mode & ApiDefinedNewMode) != 0);
253
Debug.
Assert
(useLegacy || (_mode & XmlDefinedNewMode) != 0);
System\Configuration\SectionRecord.cs (1)
186
Debug.
Assert
(sectionInput != null);
System\Configuration\TypeUtil.cs (1)
189
Debug.
Assert
(owner != null);
System\Configuration\updateconfighost.cs (1)
38
Debug.
Assert
(!String.IsNullOrEmpty(oldStreamname));