40 references to ErrorLocations
Microsoft.Build.Engine.UnitTests (40)
ProjectCache\ProjectCacheTests.cs (40)
1105yield return new object[] { ErrorLocations.Constructor, ErrorKind.Exception };
1109yield return new object[] { ErrorLocations.BeginBuildAsync, errorKind };
1110yield return new object[] { ErrorLocations.BeginBuildAsync | ErrorLocations.GetCacheResultAsync, errorKind };
1111yield return new object[] { ErrorLocations.BeginBuildAsync | ErrorLocations.GetCacheResultAsync | ErrorLocations.EndBuildAsync, errorKind };
1112yield return new object[] { ErrorLocations.BeginBuildAsync | ErrorLocations.EndBuildAsync, errorKind };
1114yield return new object[] { ErrorLocations.GetCacheResultAsync, errorKind };
1115yield return new object[] { ErrorLocations.GetCacheResultAsync | ErrorLocations.EndBuildAsync, errorKind };
1117yield return new object[] { ErrorLocations.EndBuildAsync, errorKind };
1124public void EngineShouldHandleExceptionsFromCachePluginViaBuildParameters(ErrorLocations errorLocations, ErrorKind errorKind)
1153var exceptionsThatEndUpInBuildResult =
1154ErrorLocations.Constructor | ErrorLocations.BeginBuildAsync | ErrorLocations.GetCacheResultAsync;
1174if (errorLocations == ErrorLocations.EndBuildAsync)
1186var exceptionsThatPreventEndBuildFromThrowing = ErrorLocations.Constructor |
1187ErrorLocations.BeginBuildAsync;
1190!errorLocations.HasFlag(ErrorLocations.EndBuildAsync))
1194else if (errorLocations.HasFlag(ErrorLocations.EndBuildAsync))
1218var exceptionsThatShouldPreventCacheQueryAndEndBuildAsync = ErrorLocations.Constructor | ErrorLocations.BeginBuildAsync;
1241public void EngineShouldHandleExceptionsFromCachePluginViaGraphBuild(ErrorLocations errorLocations, ErrorKind errorKind)
1243const ErrorLocations exceptionsThatShouldPreventCacheQueryAndEndBuildAsync = ErrorLocations.Constructor | ErrorLocations.BeginBuildAsync;
1279if (!errorLocations.HasFlag(ErrorLocations.Constructor))
1285if (errorLocations == ErrorLocations.EndBuildAsync)
1311if (errorLocations.HasFlag(ErrorLocations.EndBuildAsync)
1332var expectedQueryOccurrences = errorLocations.HasFlag(ErrorLocations.GetCacheResultAsync)
1357SetEnvironmentForErrorLocations(ErrorLocations.EndBuildAsync, ErrorKind.Exception);
1664private void SetEnvironmentForErrorLocations(ErrorLocations errorLocations, ErrorKind errorKind)
1666foreach (var enumValue in Enum.GetValues(typeof(ErrorLocations)))
1668var typedValue = (ErrorLocations)enumValue;