30 references to VerifyThrow
Microsoft.Build.Framework (30)
AssemblyUtilities.cs (1)
136FrameworkErrorUtilities.VerifyThrow(cultureTypesType?.Name == "CultureTypes" &&
Collections\ReadOnlyCollection.cs (1)
38FrameworkErrorUtilities.VerifyThrow(backing != null, "Need backing collection");
FileUtilities.cs (2)
604FrameworkErrorUtilities.VerifyThrow(trailingSegmentsToKeep >= 0, "trailing segments must be positive"); 1388FrameworkErrorUtilities.VerifyThrow(splitPath.Length > 0, "Cannot call MakeRelative on a path of only slashes.");
FileUtilities_TempFiles.cs (1)
195FrameworkErrorUtilities.VerifyThrow(!FileSystems.Default.FileExists(file), "Guid should be unique");
ItemSpecModifiers.cs (5)
394FrameworkErrorUtilities.VerifyThrow(itemSpec != null, "Need item-spec to modify."); 445FrameworkErrorUtilities.VerifyThrow(definingProjectEscaped != null, "How could definingProjectEscaped by null?"); 497FrameworkErrorUtilities.VerifyThrow( 562FrameworkErrorUtilities.VerifyThrow( 572FrameworkErrorUtilities.VerifyThrow(
Loader\LoadedType.cs (3)
38FrameworkErrorUtilities.VerifyThrow(type != null, "We must have the type."); 39FrameworkErrorUtilities.VerifyThrow(assemblyLoadInfo != null, "We must have the assembly the type was loaded from."); 40FrameworkErrorUtilities.VerifyThrow(loadedAssembly is not null, "The assembly should always be loaded even if only by MetadataLoadContext.");
ReflectableTaskPropertyInfo.cs (1)
80FrameworkErrorUtilities.VerifyThrow(_propertyInfo != null, $"Could not find property {Name} on type {_taskType.FullName} that the task factory indicated should exist.");
ReuseableStringBuilder.cs (1)
189FrameworkErrorUtilities.VerifyThrow(_capacity != -1, "Reusing after dispose");
Utilities\AssemblyLoadInfo.cs (4)
28FrameworkErrorUtilities.VerifyThrow((!string.IsNullOrEmpty(assemblyName)) || (!string.IsNullOrEmpty(assemblyFile)), 30FrameworkErrorUtilities.VerifyThrow((assemblyName == null) || (assemblyFile == null), 111FrameworkErrorUtilities.VerifyThrow(translator.Mode == TranslationDirection.WriteToStream, "write only"); 197FrameworkErrorUtilities.VerifyThrow(Path.IsPathRooted(assemblyFile), "Assembly file path should be rooted");
Utilities\AssemblyNameExtension.cs (3)
328FrameworkErrorUtilities.VerifyThrow(!immutable, "Object is immutable cannot replace the version"); 385FrameworkErrorUtilities.VerifyThrow(extensionToAdd.Immutable, "ExtensionToAdd is not immutable"); 516FrameworkErrorUtilities.VerifyThrow(result == baselineResult, "Optimized version of CompareBaseNameTo didn't return the same result as the baseline.");
Utilities\FileMatcher.cs (6)
461FrameworkErrorUtilities.VerifyThrow( 528FrameworkErrorUtilities.VerifyThrow( 852FrameworkErrorUtilities.VerifyThrow( 856FrameworkErrorUtilities.VerifyThrow( 860FrameworkErrorUtilities.VerifyThrow(recursionState.RemainingWildcardDirectory != null, "Expected non-null remaning wildcard directory."); 1196FrameworkErrorUtilities.VerifyThrow(
Utilities\QuotingUtilities.cs (2)
70FrameworkErrorUtilities.VerifyThrow(maxSplits >= 2, "There is no point calling this method for less than two splits."); 74FrameworkErrorUtilities.VerifyThrow(separators.IndexOf('"') == -1, "The double-quote character is not supported as a separator.");