46 references to VerifyThrow
MSBuild (46)
CommandLine\CommandLineParser.cs (4)
549
ErrorUtilities.
VerifyThrow
(projectSwitchParameters.Length <= 1, "Expect exactly one project at a time.");
600
ErrorUtilities.
VerifyThrow
(switchName == unquotedSwitchIndicatorAndName.Substring(switchIndicatorsLength),
603
ErrorUtilities.
VerifyThrow
(doubleQuotesRemovedFromArg >= doubleQuotesRemovedFromSwitchIndicatorAndName,
632
ErrorUtilities.
VerifyThrow
(switchParameters != null, "We must be able to extract the switch parameters.");
CommandLine\CommandLineSwitchException.cs (1)
152
ErrorUtilities.
VerifyThrow
(errorMessage != null, "The resource string must exist.");
CommunicationsUtilities.cs (4)
265
ErrorUtilities.
VerifyThrow
(
478
ErrorUtilities.
VerifyThrow
(bytes.Length == 4, "Int should be 4 bytes");
694
ErrorUtilities.
VerifyThrow
(taskHostParameters.Runtime != null, "Should always have an explicit runtime when we call this method.");
695
ErrorUtilities.
VerifyThrow
(taskHostParameters.Architecture != null, "Should always have an explicit architecture when we call this method.");
InitializationException.cs (4)
145
ErrorUtilities.
VerifyThrow
(errorMessage != null, "The resource string must exist.");
167
ErrorUtilities.
VerifyThrow
(errorMessage != null, "The resource string must exist.");
191
ErrorUtilities.
VerifyThrow
(errorMessage != null, "The resource string must exist.");
208
ErrorUtilities.
VerifyThrow
(message != null, "The string must exist.");
JsonOutputFormatter.cs (4)
35
ErrorUtilities.
VerifyThrow
(_topLevelNode["Properties"] is null, "Should not add multiple lists of properties to the json format.");
53
ErrorUtilities.
VerifyThrow
(_topLevelNode["Items"] is null, "Should not add multiple lists of items to the json format.");
89
ErrorUtilities.
VerifyThrow
(_topLevelNode["Items"] is null, "Should not add multiple lists of items to the json format.");
130
ErrorUtilities.
VerifyThrow
(_topLevelNode["TargetResults"] is null, "Should not add multiple lists of target results to the json format.");
LogMessagePacketBase.cs (3)
294
ErrorUtilities.
VerifyThrow
(nodeBuildEvent != null, "nodeBuildEvent was null");
381
ErrorUtilities.
VerifyThrow
(_eventType != LoggingEventType.CustomEvent, "_eventType should not be a custom event");
422
ErrorUtilities.
VerifyThrow
(_eventType != LoggingEventType.CustomEvent, "_eventType should not be a custom event");
NodeEndpointOutOfProcBase.cs (3)
315
ErrorUtilities.
VerifyThrow
(_packetPump.ManagedThreadId != Thread.CurrentThread.ManagedThreadId, "Can't join on the same thread.");
333
ErrorUtilities.
VerifyThrow
(_packetQueue != null, "packetQueue is null");
334
ErrorUtilities.
VerifyThrow
(_packetAvailable != null, "packetAvailable is null");
OutOfProcTaskHostNode.cs (10)
268
ErrorUtilities.
VerifyThrow
(EffectiveConfiguration != null, "We should never have a null configuration during a BuildEngine callback!");
280
ErrorUtilities.
VerifyThrow
(EffectiveConfiguration != null, "We should never have a null configuration during a BuildEngine callback!");
292
ErrorUtilities.
VerifyThrow
(EffectiveConfiguration != null, "We should never have a null configuration during a BuildEngine callback!");
304
ErrorUtilities.
VerifyThrow
(EffectiveConfiguration != null, "We should never have a null configuration during a BuildEngine callback!");
745
ErrorUtilities.
VerifyThrow
(_taskHost.EffectiveConfiguration != null, "We should never have a null configuration during a BuildEngine callback!");
1265
ErrorUtilities.
VerifyThrow
(_activeTaskCount == 0, "We should never have a task in the process of executing when we receive NodeBuildComplete.");
1491
ErrorUtilities.
VerifyThrow
(
1759
ErrorUtilities.
VerifyThrow
(EffectiveConfiguration != null, "We should never have a null configuration when we're trying to log messages!");
1776
ErrorUtilities.
VerifyThrow
(EffectiveConfiguration != null, "We should never have a null configuration when we're trying to log warnings!");
1799
ErrorUtilities.
VerifyThrow
(EffectiveConfiguration != null, "We should never have a null configuration when we're trying to log errors!");
OutOfProcTaskHostTaskResult.cs (2)
70
ErrorUtilities.
VerifyThrow
(
79
ErrorUtilities.
VerifyThrow
(exceptionMessage != null, "If we have message args, we need a message.");
TypeLoader.cs (1)
119
ErrorUtilities.
VerifyThrow
(isDesiredType != null, "need a type filter");
XMake.cs (6)
1729
ErrorUtilities.
VerifyThrow
(ex.HasBeenLogged, "Should have been logged");
2357
ErrorUtilities.
VerifyThrow
(!invokeBuild || !string.IsNullOrEmpty(projectFile), "We should have a project file if we're going to build.");
3099
ErrorUtilities.
VerifyThrow
(parameters.Length <= 1, "Expect exactly one project at a time.");
3854
ErrorUtilities.
VerifyThrow
((loggerSpec.Count >= 1) && (loggerSpec.Count <= 2),
3900
ErrorUtilities.
VerifyThrow
((loggerSpec.Count >= 1) && (loggerSpec.Count <= 2),
3916
ErrorUtilities.
VerifyThrow
(loggerTypeSpec.Count >= 1, "SplitUnquoted() must return at least one string");
XMakeAttributes.cs (4)
162
ErrorUtilities.
VerifyThrow
(runtimeA != String.Empty && runtimeB != String.Empty, "We should never get an empty string passed to this method");
206
ErrorUtilities.
VerifyThrow
(runtimeA != String.Empty && runtimeB != String.Empty, "We should never get an empty string passed to this method");
279
ErrorUtilities.
VerifyThrow
(architectureA != String.Empty && architectureB != String.Empty, "We should never get an empty string passed to this method");
346
ErrorUtilities.
VerifyThrow
(architectureA != String.Empty && architectureB != String.Empty, "We should never get an empty string passed to this method");