Remove 4 assertions which cause debug build test runs to fail (#15963)

This commit is contained in:
James Truher [MSFT] 2021-08-22 10:49:07 -07:00 committed by GitHub
parent e70ad6ce25
commit c39d672560
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 0 additions and 14 deletions

View file

@ -851,18 +851,6 @@ namespace Microsoft.PowerShell
}
// If we get all the way to here, then we've compressed all the nodes and we still don't fit.
#if DEBUG || ASSERTIONS_TRACE
Dbg.Assert(
nodesCompressed == CountNodes(),
"We should have compressed every node in the tree.");
Dbg.Assert(
AllNodesHaveGivenStyle(_topLevelNodes, newStyle),
"We should have compressed every node in the tree.");
#endif
return false;
}

View file

@ -28,7 +28,6 @@ namespace System.Management.Automation.Help
internal UpdatableHelpModuleInfo(string name, Guid guid, string path, string uri)
{
Debug.Assert(!string.IsNullOrEmpty(name));
Debug.Assert(guid != Guid.Empty);
Debug.Assert(!string.IsNullOrEmpty(path));
Debug.Assert(!string.IsNullOrEmpty(uri));

View file

@ -21,7 +21,6 @@ namespace System.Management.Automation.Help
internal UpdatableHelpUri(string moduleName, Guid moduleGuid, CultureInfo culture, string resolvedUri)
{
Debug.Assert(!string.IsNullOrEmpty(moduleName));
Debug.Assert(moduleGuid != Guid.Empty);
Debug.Assert(!string.IsNullOrEmpty(resolvedUri));
ModuleName = moduleName;