27 references to VerifyThrow
Microsoft.Build.Utilities.Core (24)
FileMatcher.cs (4)
844
ErrorUtilities.
VerifyThrow
((recursionState.SearchData.Filespec == null) || (recursionState.SearchData.RegexFileMatch == null),
847
ErrorUtilities.
VerifyThrow
((recursionState.SearchData.Filespec != null) || (recursionState.SearchData.RegexFileMatch != null),
850
ErrorUtilities.
VerifyThrow
(recursionState.RemainingWildcardDirectory != null, "Expected non-null remaning wildcard directory.");
1186
ErrorUtilities.
VerifyThrow
(
FileUtilities.cs (2)
393
ErrorUtilities.
VerifyThrow
(trailingSegmentsToKeep >= 0, "trailing segments must be positive");
1144
ErrorUtilities.
VerifyThrow
(splitPath.Length > 0, "Cannot call MakeRelative on a path of only slashes.");
Modifiers.cs (5)
385
ErrorUtilities.
VerifyThrow
(itemSpec != null, "Need item-spec to modify.");
386
ErrorUtilities.
VerifyThrow
(modifier != null, "Need modifier to apply to item-spec.");
417
ErrorUtilities.
VerifyThrow
(FileUtilitiesRegex.StartsWithUncPattern(modifiedItemSpec),
478
ErrorUtilities.
VerifyThrow
((modifiedItemSpec.Length > length) && IsSlash(modifiedItemSpec[length]),
486
ErrorUtilities.
VerifyThrow
(!string.IsNullOrEmpty(modifiedItemSpec) && IsSlash(modifiedItemSpec[0]),
TaskLoggingHelper.cs (3)
330
ErrorUtilities.
VerifyThrow
(errorCode == null, "This message contains an error code (" + errorCode + "), yet it was logged as a regular message: " + message);
795
ErrorUtilities.
VerifyThrow
(string.IsNullOrEmpty(messageCode), "Called LogErrorFromResources instead of LogErrorWithCodeFromResources, but message '" + throwAwayMessageBody + "' does have an error code '" + messageCode + "'");
1163
ErrorUtilities.
VerifyThrow
(string.IsNullOrEmpty(messageCode), "Called LogWarningFromResources instead of LogWarningWithCodeFromResources, but message '" + throwAwayMessageBody + "' does have an error code '" + messageCode + "'");
TempFileUtilities.cs (1)
188
ErrorUtilities.
VerifyThrow
(!FileSystems.Default.FileExists(file), "Guid should be unique");
ToolLocationHelper.cs (1)
3018
ErrorUtilities.
VerifyThrow
(!string.IsNullOrEmpty(sdk.Path), "SDK path must be set");
ToolTask.cs (8)
995
ErrorUtilities.
VerifyThrow
(Timeout != System.Threading.Timeout.Infinite,
1097
ErrorUtilities.
VerifyThrow
(dataQueue != null,
1130
ErrorUtilities.
VerifyThrow
(dataAvailableSignal != null,
1159
ErrorUtilities.
VerifyThrow
(_toolTimeoutExpired != null,
1179
ErrorUtilities.
VerifyThrow
(_toolExited != null,
1227
ErrorUtilities.
VerifyThrow
(dataQueue != null,
1241
ErrorUtilities.
VerifyThrow
(dataAvailableSignal != null,
1575
ErrorUtilities.
VerifyThrow
(nextAction == HostObjectInitializationStatus.UseAlternateToolToExecute,
Microsoft.Build.Utilities.UnitTests (3)
ErrorUtilities_Tests.cs (3)
21
ErrorUtilities.
VerifyThrow
(false, "msbuild rules");
36
ErrorUtilities.
VerifyThrow
(true, "msbuild rules");
43
ErrorUtilities.
VerifyThrow
(true, "blah");