40 references to ErrorLocations
Microsoft.Build.Engine.UnitTests (40)
ProjectCache\ProjectCacheTests.cs (40)
1104yield return new object[] { ErrorLocations.Constructor, ErrorKind.Exception }; 1108yield return new object[] { ErrorLocations.BeginBuildAsync, errorKind }; 1109yield return new object[] { ErrorLocations.BeginBuildAsync | ErrorLocations.GetCacheResultAsync, errorKind }; 1110yield return new object[] { ErrorLocations.BeginBuildAsync | ErrorLocations.GetCacheResultAsync | ErrorLocations.EndBuildAsync, errorKind }; 1111yield return new object[] { ErrorLocations.BeginBuildAsync | ErrorLocations.EndBuildAsync, errorKind }; 1113yield return new object[] { ErrorLocations.GetCacheResultAsync, errorKind }; 1114yield return new object[] { ErrorLocations.GetCacheResultAsync | ErrorLocations.EndBuildAsync, errorKind }; 1116yield return new object[] { ErrorLocations.EndBuildAsync, errorKind }; 1123public void EngineShouldHandleExceptionsFromCachePluginViaBuildParameters(ErrorLocations errorLocations, ErrorKind errorKind) 1152var exceptionsThatEndUpInBuildResult = 1153ErrorLocations.Constructor | ErrorLocations.BeginBuildAsync | ErrorLocations.GetCacheResultAsync; 1173if (errorLocations == ErrorLocations.EndBuildAsync) 1185var exceptionsThatPreventEndBuildFromThrowing = ErrorLocations.Constructor | 1186ErrorLocations.BeginBuildAsync; 1189!errorLocations.HasFlag(ErrorLocations.EndBuildAsync)) 1193else if (errorLocations.HasFlag(ErrorLocations.EndBuildAsync)) 1217var exceptionsThatShouldPreventCacheQueryAndEndBuildAsync = ErrorLocations.Constructor | ErrorLocations.BeginBuildAsync; 1240public void EngineShouldHandleExceptionsFromCachePluginViaGraphBuild(ErrorLocations errorLocations, ErrorKind errorKind) 1242const ErrorLocations exceptionsThatShouldPreventCacheQueryAndEndBuildAsync = ErrorLocations.Constructor | ErrorLocations.BeginBuildAsync; 1278if (!errorLocations.HasFlag(ErrorLocations.Constructor)) 1284if (errorLocations == ErrorLocations.EndBuildAsync) 1310if (errorLocations.HasFlag(ErrorLocations.EndBuildAsync) 1331var expectedQueryOccurrences = errorLocations.HasFlag(ErrorLocations.GetCacheResultAsync) 1356SetEnvironmentForErrorLocations(ErrorLocations.EndBuildAsync, ErrorKind.Exception); 1663private void SetEnvironmentForErrorLocations(ErrorLocations errorLocations, ErrorKind errorKind) 1665foreach (var enumValue in Enum.GetValues(typeof(ErrorLocations))) 1667var typedValue = (ErrorLocations)enumValue;