22 references to ErrorUtilities
Microsoft.Build.Engine.OM.UnitTests (22)
FileUtilities.cs (10)
204
ErrorUtilities
.ThrowArgument("DebugPathTooLong", directory);
413
ErrorUtilities
.VerifyThrowInternalLength(path, nameof(path));
414
ErrorUtilities
.VerifyThrow(trailingSegmentsToKeep >= 0, "trailing segments must be positive");
485
ErrorUtilities
.VerifyThrowArgumentLength(path);
1168
ErrorUtilities
.VerifyThrowArgumentNull(basePath);
1169
ErrorUtilities
.VerifyThrowArgumentLength(path);
1177
ErrorUtilities
.VerifyThrow(splitPath.Length > 0, "Cannot call MakeRelative on a path of only slashes.");
1306
ErrorUtilities
.VerifyThrowArgumentNull(root);
1307
ErrorUtilities
.VerifyThrowArgumentNull(paths);
1517
ErrorUtilities
.ThrowArgument("InvalidGetPathOfFileAboveParameter", file);
PrintLineDebugger.cs (4)
32
ErrorUtilities
.VerifyThrowInternalNull(propertyInfo);
83
ErrorUtilities
.ThrowInternalError("Cannot set a new writer over an old writer. Remove the old one first");
105
ErrorUtilities
.ThrowInternalError("Cannot unset an already null writer");
169
ErrorUtilities
.ThrowInternalError($"The writer from this {nameof(PrintLineDebugger)} instance differs from the static writer.");
ResourceUtilities.cs (6)
39
ErrorUtilities
.VerifyThrowInternalNull(message);
428
ErrorUtilities
.ThrowInternalError(
454
ErrorUtilities
.ThrowInternalError("The resource string \"" + resourceName + "\" was not found.");
462
ErrorUtilities
.ThrowInternalError(e.Message);
469
ErrorUtilities
.ThrowInternalError(e.Message);
476
ErrorUtilities
.ThrowInternalError(e.Message);
TempFileUtilities.cs (2)
162
ErrorUtilities
.VerifyThrowArgumentLengthIfNotNull(directory, nameof(directory));
188
ErrorUtilities
.VerifyThrow(!FileSystems.Default.FileExists(file), "Guid should be unique");