System\Configuration\BaseConfigurationRecord.cs (30)
496Debug.Assert(inputsPerConfigKey.Count > 0, "We won't get here unless we have inputs.");
600Debug.Assert(!_parent.IsInitDelayed, "!_parent.IsInitDelayed");
709Debug.Assert(!sectionRecord.HasIndirectLocationInputs,
913Debug.Assert(!sectionRecord.HasErrors, "!sectionRecord.HasErrors");
1114Debug.Assert(factoryRecord != null, "factoryRecord != null");
1129Debug.Assert(factoryRecord != null, "factoryRecord != null");
1134Debug.Assert(!checkPermission || factoryRecord != null, "!checkPermission || factoryRecord != null");
1195Debug.Assert(success || getLkg, "success || getLkg");
1198Debug.Assert(getLkg == true, "getLkg == true");
1226Debug.Assert(!requestIsHere, "!requestIsHere");
1280Debug.Assert(getLkg == true, "getLkg == true");
1532Debug.Assert(!factoryRecord.HasErrors, "!factoryRecord.HasErrors");
1535Debug.Assert(sectionRecord.HasInput, "sectionRecord.HasInput");
1545Debug.Assert(!(IsLocationConfig && getLkg),
1556Debug.Assert(!sectionRecord.HasErrors, "!sectionRecord.HasErrors");
1597Debug.Assert(IsLocationConfig, "indirectLocationInputs is non-null only in location config record");
1646Debug.Assert(locationInputs != null || indirectLocationInputs != null,
1676Debug.Assert(getLkg == true, "getLkg == true");
2086Debug.Assert(_protectedConfig != null, "<configProtectedData> section should always be available because it's a built-in section");
2236Debug.Assert(!rootFactoryRecord.HasErrors, "!rootFactoryRecord.HasErrors");
2742Debug.Assert(UrlPath.IsSubpath(_parent.ConfigPath, input.SectionXmlInfo.TargetConfigPath));
2818Debug.Assert(FindFactoryRecord(configKey, true) != null);
2839Debug.Assert(mode != OverrideMode.Inherit); // Remember that the default is never Inherit
2855Debug.Assert(mode != OverrideMode.Inherit);
3182Debug.Assert(!positionedAtNextElement, "!positionedAtNextElement");
4396Debug.Assert(factoryRecord.HasErrors, "If the user has mistakenly declared an implicit section, we should have recorded an error.");
4423Debug.Assert(factoryRecord.HasErrors, "If the user has mistakenly declared an implicit section, we should have recorded an error.");
4535Debug.Assert(x.SectionXmlInfo.ConfigKey == y.SectionXmlInfo.ConfigKey);
4559Debug.Assert(StringUtil.EqualsIgnoreCase(yTargetConfigPath, xTargetConfigPath));
4574Debug.Assert(false,
System\Configuration\MgmtConfigurationRecord.cs (25)
432Debug.Assert(input.HasResult, "input.HasResult");
436Debug.Assert(IsLocationConfig, "Indirect location inputs exist only in location config record");
438Debug.Assert(input != null);
439Debug.Assert(input.HasResult, "input.HasResult");
462Debug.Assert(!current.IsRootConfig, "An immediate parent result should have been found");
1150Debug.Assert(filename.Length > 0, "The caller should make sure that filename is not empty");
1569Debug.Assert(!factoryRecord.IsUndeclared, "!factoryRecord.IsUndeclared");
1570Debug.Assert(!IsImplicitSection(factoryRecord.ConfigKey), "We should never write out an implicit section");
1594Debug.Assert(!IsImplicitSection(sectionRecord.ConfigKey), "We should never write out an implicit section");
1595Debug.Assert(!factoryRecord.IsUndeclared, "!factoryRecord.IsUndeclared");
1954Debug.Assert(sectionRecord.HasFileInput || sectionRecord.HasLocationInputs, "sectionRecord.HasFileInput || sectionRecord.HasLocationInputs");
1973Debug.Assert(sectionRecord.HasFileInput || sectionRecord.HasLocationInputs, "sectionRecord.HasFileInput || sectionRecord.HasLocationInputs");
2126Debug.Assert(!IsImplicitSection(configKey), "We should never write out an implicit section");
2212Debug.Assert(IsLocationConfig, "IsLocationConfig");
2329Debug.Assert(reader.NodeType == XmlNodeType.Element && reader.Name == KEYWORD_CONFIGURATION,
2384Debug.Assert(reader.NodeType == XmlNodeType.EndElement && reader.Name == KEYWORD_CONFIGSECTIONS,
2540Debug.Assert(!IsImplicitSection(configKey), "We should never write out an implicit section");
2596Debug.Assert(!IsImplicitSection(configKey), "We should never write out an implicit section");
2674Debug.Assert(groupUpdate.UpdatedXml == null, "groupUpdate.UpdatedXml == null");
2675Debug.Assert(!declarationUpdatesChild.HasUnretrievedSections(),
2761Debug.Assert(locationPathApplies, "locationPathApplies");
2828Debug.Assert(LocationSubPath == null);
2847Debug.Assert(allowOverrideAttribute == null, "allowOverride and overrideMode both detected in a <location> tag");
3081Debug.Assert(update.SectionRecord.HasFileInput, "update.SectionRecord.HasFileInput");
3123Debug.Assert(hasFile, "hasFile");