40 references to VerifyThrow
Microsoft.Build (2)
ErrorUtilities.cs (2)
107
/// <inheritdoc cref="FrameworkErrorUtilities.
VerifyThrow
(bool, string)"/>
109
=> FrameworkErrorUtilities.
VerifyThrow
(condition, message);
Microsoft.Build.Framework (33)
BackEnd\CommunicationsUtilities.cs (3)
367
FrameworkErrorUtilities.
VerifyThrow
(bytes.Length == 4, "Int should be 4 bytes");
566
FrameworkErrorUtilities.
VerifyThrow
(taskHostParameters.Runtime != null, "Should always have an explicit runtime when we call this method.");
567
FrameworkErrorUtilities.
VerifyThrow
(taskHostParameters.Architecture != null, "Should always have an explicit architecture when we call this method.");
Collections\ReadOnlyCollection.cs (1)
38
FrameworkErrorUtilities.
VerifyThrow
(backing != null, "Need backing collection");
FileUtilities.cs (2)
604
FrameworkErrorUtilities.
VerifyThrow
(trailingSegmentsToKeep >= 0, "trailing segments must be positive");
1388
FrameworkErrorUtilities.
VerifyThrow
(splitPath.Length > 0, "Cannot call MakeRelative on a path of only slashes.");
FileUtilities_TempFiles.cs (1)
195
FrameworkErrorUtilities.
VerifyThrow
(!FileSystems.Default.FileExists(file), "Guid should be unique");
ItemSpecModifiers.cs (5)
394
FrameworkErrorUtilities.
VerifyThrow
(itemSpec != null, "Need item-spec to modify.");
445
FrameworkErrorUtilities.
VerifyThrow
(definingProjectEscaped != null, "How could definingProjectEscaped by null?");
497
FrameworkErrorUtilities.
VerifyThrow
(
562
FrameworkErrorUtilities.
VerifyThrow
(
572
FrameworkErrorUtilities.
VerifyThrow
(
Loader\LoadedType.cs (3)
38
FrameworkErrorUtilities.
VerifyThrow
(type != null, "We must have the type.");
39
FrameworkErrorUtilities.
VerifyThrow
(assemblyLoadInfo != null, "We must have the assembly the type was loaded from.");
40
FrameworkErrorUtilities.
VerifyThrow
(loadedAssembly is not null, "The assembly should always be loaded even if only by MetadataLoadContext.");
ReuseableStringBuilder.cs (1)
189
FrameworkErrorUtilities.
VerifyThrow
(_capacity != -1, "Reusing after dispose");
Utilities\AssemblyLoadInfo.cs (4)
28
FrameworkErrorUtilities.
VerifyThrow
((!string.IsNullOrEmpty(assemblyName)) || (!string.IsNullOrEmpty(assemblyFile)),
30
FrameworkErrorUtilities.
VerifyThrow
((assemblyName == null) || (assemblyFile == null),
111
FrameworkErrorUtilities.
VerifyThrow
(translator.Mode == TranslationDirection.WriteToStream, "write only");
197
FrameworkErrorUtilities.
VerifyThrow
(Path.IsPathRooted(assemblyFile), "Assembly file path should be rooted");
Utilities\AssemblyNameExtension.cs (3)
328
FrameworkErrorUtilities.
VerifyThrow
(!immutable, "Object is immutable cannot replace the version");
385
FrameworkErrorUtilities.
VerifyThrow
(extensionToAdd.Immutable, "ExtensionToAdd is not immutable");
516
FrameworkErrorUtilities.
VerifyThrow
(result == baselineResult, "Optimized version of CompareBaseNameTo didn't return the same result as the baseline.");
Utilities\FileMatcher.cs (4)
852
FrameworkErrorUtilities.
VerifyThrow
(
856
FrameworkErrorUtilities.
VerifyThrow
(
860
FrameworkErrorUtilities.
VerifyThrow
(recursionState.RemainingWildcardDirectory != null, "Expected non-null remaning wildcard directory.");
1196
FrameworkErrorUtilities.
VerifyThrow
(
Utilities\QuotingUtilities.cs (2)
70
FrameworkErrorUtilities.
VerifyThrow
(maxSplits >= 2, "There is no point calling this method for less than two splits.");
74
FrameworkErrorUtilities.
VerifyThrow
(separators.IndexOf('"') == -1, "The double-quote character is not supported as a separator.");
XMakeAttributes.cs (4)
163
FrameworkErrorUtilities.
VerifyThrow
(runtimeA != String.Empty && runtimeB != String.Empty, "We should never get an empty string passed to this method");
207
FrameworkErrorUtilities.
VerifyThrow
(runtimeA != String.Empty && runtimeB != String.Empty, "We should never get an empty string passed to this method");
280
FrameworkErrorUtilities.
VerifyThrow
(architectureA != String.Empty && architectureB != String.Empty, "We should never get an empty string passed to this method");
347
FrameworkErrorUtilities.
VerifyThrow
(architectureA != String.Empty && architectureB != String.Empty, "We should never get an empty string passed to this method");
Microsoft.Build.Tasks.Core (2)
ErrorUtilities.cs (2)
107
/// <inheritdoc cref="FrameworkErrorUtilities.
VerifyThrow
(bool, string)"/>
109
=> FrameworkErrorUtilities.
VerifyThrow
(condition, message);
Microsoft.Build.Utilities.Core (2)
ErrorUtilities.cs (2)
107
/// <inheritdoc cref="FrameworkErrorUtilities.
VerifyThrow
(bool, string)"/>
109
=> FrameworkErrorUtilities.
VerifyThrow
(condition, message);
MSBuild (1)
ErrorUtilities.cs (1)
109
=> FrameworkErrorUtilities.
VerifyThrow
(condition, message);