16 references to VerifyThrow
Microsoft.Build.Tasks.Core (15)
AssemblyDependency\GlobalAssemblyCache.cs (1)
189
ErrorUtilities.
VerifyThrow
(hr == NativeMethodsShared.S_OK, "CreateAssemblyCache failed, hr {0}", hr);
AssemblyResources.cs (1)
27
ErrorUtilities.
VerifyThrow
(resource != null, "Missing resource '{0}'", name);
FileMatcher.cs (1)
449
ErrorUtilities.
VerifyThrow
(!HasWildcards(path),
GenerateResource.cs (2)
2725
ErrorUtilities.
VerifyThrow
(_readers.Count == 1,
2735
ErrorUtilities.
VerifyThrow
(_readers.Count == 1,
MSBuild.cs (1)
352
ErrorUtilities.
VerifyThrow
(skipNonExistProjects == SkipNonExistentProjectsBehavior.Error, "skipNonexistentProjects has unexpected value {0}", skipNonExistProjects);
XamlTaskFactory\CommandLineToolSwitch.cs (8)
243
ErrorUtilities.
VerifyThrow
(Type == CommandLineToolSwitchType.Boolean, "InvalidType", TypeBoolean);
249
ErrorUtilities.
VerifyThrow
(Type == CommandLineToolSwitchType.Boolean, "InvalidType", TypeBoolean);
261
ErrorUtilities.
VerifyThrow
(Type == CommandLineToolSwitchType.Integer, "InvalidType", TypeInteger);
267
ErrorUtilities.
VerifyThrow
(Type == CommandLineToolSwitchType.Integer, "InvalidType", TypeInteger);
280
ErrorUtilities.
VerifyThrow
(Type == CommandLineToolSwitchType.StringArray, "InvalidType", TypeStringArray);
286
ErrorUtilities.
VerifyThrow
(Type == CommandLineToolSwitchType.StringArray, "InvalidType", TypeStringArray);
299
ErrorUtilities.
VerifyThrow
(Type == CommandLineToolSwitchType.ITaskItemArray, "InvalidType", TypeITaskItemArray);
305
ErrorUtilities.
VerifyThrow
(Type == CommandLineToolSwitchType.ITaskItemArray, "InvalidType", TypeITaskItemArray);
XamlTaskFactory\TaskGenerator.cs (1)
611
ErrorUtilities.
VerifyThrow
(value != null, "NullValue", property);
Microsoft.Build.Tasks.UnitTests (1)
ErrorUtilities_Tests.cs (1)
50
ErrorUtilities.
VerifyThrow
(true, "{0}", "a");