48 references to VerifyThrow
Microsoft.Build.Tasks.Core (43)
AssemblyDependency\AssemblyFoldersFromConfig\AssemblyFoldersFromConfigResolver.cs (1)
130ErrorUtilities.VerifyThrow(FileSystems.Default.FileExists(_assemblyFolderConfigFile),
AssemblyDependency\GenerateBindingRedirects.cs (2)
195ErrorUtilities.VerifyThrow(runtimeNode != null, "This should not be called if the \"runtime\" node is missing."); 361ErrorUtilities.VerifyThrow(SuggestedRedirects?.Length > 0, "This should not be called if there is no suggested redirect.");
AssemblyDependency\Reference.cs (4)
621ErrorUtilities.VerifyThrow( 623ErrorUtilities.VerifyThrow( 747ErrorUtilities.VerifyThrow(remappedFrom.Immutable, " Remapped from is NOT immutable"); 748ErrorUtilities.VerifyThrow(remappedTo.Immutable, " Remapped to is NOT immutable");
AssemblyDependency\ReferenceTable.cs (6)
405ErrorUtilities.VerifyThrow(assemblyName.Name != null, "Got an empty assembly name."); 430ErrorUtilities.VerifyThrow(assemblyName.Name != null, "Got an empty assembly name."); 1655ErrorUtilities.VerifyThrow(dependencyIterations < maxIterations, "Maximum iterations exceeded while looking for dependencies."); 1674ErrorUtilities.VerifyThrow(moreResolvableIterations < maxIterations, "Maximum iterations exceeded while looking for resolvable references."); 2339ErrorUtilities.VerifyThrow(assemblyReference0.assemblyName.FullName != null, "Got a null assembly name fullname. (0)"); 2340ErrorUtilities.VerifyThrow(assemblyReference1.assemblyName.FullName != null, "Got a null assembly name fullname. (1)");
AssemblyNameExtension.cs (3)
327ErrorUtilities.VerifyThrow(!immutable, "Object is immutable cannot replace the version"); 384ErrorUtilities.VerifyThrow(extensionToAdd.Immutable, "ExtensionToAdd is not immutable"); 515ErrorUtilities.VerifyThrow(result == baselineResult, "Optimized version of CompareBaseNameTo didn't return the same result as the baseline.");
CommandLineBuilderExtension.cs (1)
236ErrorUtilities.VerifyThrow(
FileMatcher.cs (4)
844ErrorUtilities.VerifyThrow((recursionState.SearchData.Filespec == null) || (recursionState.SearchData.RegexFileMatch == null), 847ErrorUtilities.VerifyThrow((recursionState.SearchData.Filespec != null) || (recursionState.SearchData.RegexFileMatch != null), 850ErrorUtilities.VerifyThrow(recursionState.RemainingWildcardDirectory != null, "Expected non-null remaning wildcard directory."); 1186ErrorUtilities.VerifyThrow(
FileUtilities.cs (2)
393ErrorUtilities.VerifyThrow(trailingSegmentsToKeep >= 0, "trailing segments must be positive"); 1144ErrorUtilities.VerifyThrow(splitPath.Length > 0, "Cannot call MakeRelative on a path of only slashes.");
GenerateResource.cs (2)
2107ErrorUtilities.VerifyThrow(OutputResources != null && OutputResources.Length != 0, "Should be at least one output resource"); 2191ErrorUtilities.VerifyThrow(_cache != null, "We did not create a cache!");
Modifiers.cs (5)
385ErrorUtilities.VerifyThrow(itemSpec != null, "Need item-spec to modify."); 386ErrorUtilities.VerifyThrow(modifier != null, "Need modifier to apply to item-spec."); 417ErrorUtilities.VerifyThrow(FileUtilitiesRegex.StartsWithUncPattern(modifiedItemSpec), 478ErrorUtilities.VerifyThrow((modifiedItemSpec.Length > length) && IsSlash(modifiedItemSpec[length]), 486ErrorUtilities.VerifyThrow(!string.IsNullOrEmpty(modifiedItemSpec) && IsSlash(modifiedItemSpec[0]),
ReadOnlyCollection.cs (1)
38ErrorUtilities.VerifyThrow(backing != null, "Need backing collection");
StreamMappedString.cs (5)
195ErrorUtilities.VerifyThrow(originalPageNumber != _currentPageNumber, "Expected a new page."); 290ErrorUtilities.VerifyThrow(_charactersRead != _pageSize, "Attempt to append to non-last page."); 305ErrorUtilities.VerifyThrow(_priorPage != null, "There is no last character in the stream."); 389ErrorUtilities.VerifyThrow(charactersExtracted > 0, "Expected non-zero extraction count."); 404ErrorUtilities.VerifyThrow(page >= _currentPageNumber - 1 && page <= _currentPageNumber, "Could not get character count for this page.");
TempFileUtilities.cs (1)
188ErrorUtilities.VerifyThrow(!FileSystems.Default.FileExists(file), "Guid should be unique");
tokenCharReader.cs (2)
268ErrorUtilities.VerifyThrow(originalPosition != _position, "Expected position to be incremented."); 275ErrorUtilities.VerifyThrow(originalPosition != _position, "Expected position to be incremented.");
XMakeAttributes.cs (4)
170ErrorUtilities.VerifyThrow(runtimeA != String.Empty && runtimeB != String.Empty, "We should never get an empty string passed to this method"); 214ErrorUtilities.VerifyThrow(runtimeA != String.Empty && runtimeB != String.Empty, "We should never get an empty string passed to this method"); 287ErrorUtilities.VerifyThrow(architectureA != String.Empty && architectureB != String.Empty, "We should never get an empty string passed to this method"); 354ErrorUtilities.VerifyThrow(architectureA != String.Empty && architectureB != String.Empty, "We should never get an empty string passed to this method");
Microsoft.Build.Tasks.UnitTests (5)
ErrorUtilities_Tests.cs (3)
21ErrorUtilities.VerifyThrow(false, "msbuild rules"); 36ErrorUtilities.VerifyThrow(true, "msbuild rules"); 43ErrorUtilities.VerifyThrow(true, "blah");
QuotingUtilities.cs (2)
72ErrorUtilities.VerifyThrow(maxSplits >= 2, "There is no point calling this method for less than two splits."); 76ErrorUtilities.VerifyThrow(separators.IndexOf('"') == -1, "The double-quote character is not supported as a separator.");