40 references to ErrorLocations
Microsoft.Build.Engine.UnitTests (40)
ProjectCache\ProjectCacheTests.cs (40)
1106yield return new object[] { ErrorLocations.Constructor, ErrorKind.Exception };
1110yield return new object[] { ErrorLocations.BeginBuildAsync, errorKind };
1111yield return new object[] { ErrorLocations.BeginBuildAsync | ErrorLocations.GetCacheResultAsync, errorKind };
1112yield return new object[] { ErrorLocations.BeginBuildAsync | ErrorLocations.GetCacheResultAsync | ErrorLocations.EndBuildAsync, errorKind };
1113yield return new object[] { ErrorLocations.BeginBuildAsync | ErrorLocations.EndBuildAsync, errorKind };
1115yield return new object[] { ErrorLocations.GetCacheResultAsync, errorKind };
1116yield return new object[] { ErrorLocations.GetCacheResultAsync | ErrorLocations.EndBuildAsync, errorKind };
1118yield return new object[] { ErrorLocations.EndBuildAsync, errorKind };
1125public void EngineShouldHandleExceptionsFromCachePluginViaBuildParameters(ErrorLocations errorLocations, ErrorKind errorKind)
1154var exceptionsThatEndUpInBuildResult =
1155ErrorLocations.Constructor | ErrorLocations.BeginBuildAsync | ErrorLocations.GetCacheResultAsync;
1175if (errorLocations == ErrorLocations.EndBuildAsync)
1187var exceptionsThatPreventEndBuildFromThrowing = ErrorLocations.Constructor |
1188ErrorLocations.BeginBuildAsync;
1191!errorLocations.HasFlag(ErrorLocations.EndBuildAsync))
1195else if (errorLocations.HasFlag(ErrorLocations.EndBuildAsync))
1219var exceptionsThatShouldPreventCacheQueryAndEndBuildAsync = ErrorLocations.Constructor | ErrorLocations.BeginBuildAsync;
1242public void EngineShouldHandleExceptionsFromCachePluginViaGraphBuild(ErrorLocations errorLocations, ErrorKind errorKind)
1244const ErrorLocations exceptionsThatShouldPreventCacheQueryAndEndBuildAsync = ErrorLocations.Constructor | ErrorLocations.BeginBuildAsync;
1280if (!errorLocations.HasFlag(ErrorLocations.Constructor))
1286if (errorLocations == ErrorLocations.EndBuildAsync)
1312if (errorLocations.HasFlag(ErrorLocations.EndBuildAsync)
1333var expectedQueryOccurrences = errorLocations.HasFlag(ErrorLocations.GetCacheResultAsync)
1358SetEnvironmentForErrorLocations(ErrorLocations.EndBuildAsync, ErrorKind.Exception);
1665private void SetEnvironmentForErrorLocations(ErrorLocations errorLocations, ErrorKind errorKind)
1667foreach (var enumValue in Enum.GetValues(typeof(ErrorLocations)))
1669var typedValue = (ErrorLocations)enumValue;