22 references to ErrorUtilities
Microsoft.Build.Engine.OM.UnitTests (22)
FileUtilities.cs (10)
191
ErrorUtilities
.ThrowArgument("DebugPathTooLong", directory);
392
ErrorUtilities
.VerifyThrowInternalLength(path, nameof(path));
393
ErrorUtilities
.VerifyThrow(trailingSegmentsToKeep >= 0, "trailing segments must be positive");
464
ErrorUtilities
.VerifyThrowArgumentLength(path);
1135
ErrorUtilities
.VerifyThrowArgumentNull(basePath);
1136
ErrorUtilities
.VerifyThrowArgumentLength(path);
1144
ErrorUtilities
.VerifyThrow(splitPath.Length > 0, "Cannot call MakeRelative on a path of only slashes.");
1273
ErrorUtilities
.VerifyThrowArgumentNull(root);
1274
ErrorUtilities
.VerifyThrowArgumentNull(paths);
1484
ErrorUtilities
.ThrowArgument("InvalidGetPathOfFileAboveParameter", file);
PrintLineDebugger.cs (4)
30
ErrorUtilities
.VerifyThrowInternalNull(propertyInfo);
77
ErrorUtilities
.ThrowInternalError("Cannot set a new writer over an old writer. Remove the old one first");
99
ErrorUtilities
.ThrowInternalError("Cannot unset an already null writer");
161
ErrorUtilities
.ThrowInternalError($"The writer from this {nameof(PrintLineDebugger)} instance differs from the static writer.");
ResourceUtilities.cs (6)
42
ErrorUtilities
.VerifyThrowInternalNull(message);
438
ErrorUtilities
.ThrowInternalError(
464
ErrorUtilities
.ThrowInternalError("The resource string \"" + resourceName + "\" was not found.");
472
ErrorUtilities
.ThrowInternalError(e.Message);
479
ErrorUtilities
.ThrowInternalError(e.Message);
486
ErrorUtilities
.ThrowInternalError(e.Message);
TempFileUtilities.cs (2)
162
ErrorUtilities
.VerifyThrowArgumentLengthIfNotNull(directory, nameof(directory));
188
ErrorUtilities
.VerifyThrow(!FileSystems.Default.FileExists(file), "Guid should be unique");