40 references to ErrorLocations
Microsoft.Build.Engine.UnitTests (40)
ProjectCache\ProjectCacheTests.cs (40)
1090yield return new object[] { ErrorLocations.Constructor, ErrorKind.Exception }; 1094yield return new object[] { ErrorLocations.BeginBuildAsync, errorKind }; 1095yield return new object[] { ErrorLocations.BeginBuildAsync | ErrorLocations.GetCacheResultAsync, errorKind }; 1096yield return new object[] { ErrorLocations.BeginBuildAsync | ErrorLocations.GetCacheResultAsync | ErrorLocations.EndBuildAsync, errorKind }; 1097yield return new object[] { ErrorLocations.BeginBuildAsync | ErrorLocations.EndBuildAsync, errorKind }; 1099yield return new object[] { ErrorLocations.GetCacheResultAsync, errorKind }; 1100yield return new object[] { ErrorLocations.GetCacheResultAsync | ErrorLocations.EndBuildAsync, errorKind }; 1102yield return new object[] { ErrorLocations.EndBuildAsync, errorKind }; 1109public void EngineShouldHandleExceptionsFromCachePluginViaBuildParameters(ErrorLocations errorLocations, ErrorKind errorKind) 1138var exceptionsThatEndUpInBuildResult = 1139ErrorLocations.Constructor | ErrorLocations.BeginBuildAsync | ErrorLocations.GetCacheResultAsync; 1159if (errorLocations == ErrorLocations.EndBuildAsync) 1171var exceptionsThatPreventEndBuildFromThrowing = ErrorLocations.Constructor | 1172ErrorLocations.BeginBuildAsync; 1175!errorLocations.HasFlag(ErrorLocations.EndBuildAsync)) 1179else if (errorLocations.HasFlag(ErrorLocations.EndBuildAsync)) 1203var exceptionsThatShouldPreventCacheQueryAndEndBuildAsync = ErrorLocations.Constructor | ErrorLocations.BeginBuildAsync; 1226public void EngineShouldHandleExceptionsFromCachePluginViaGraphBuild(ErrorLocations errorLocations, ErrorKind errorKind) 1228const ErrorLocations exceptionsThatShouldPreventCacheQueryAndEndBuildAsync = ErrorLocations.Constructor | ErrorLocations.BeginBuildAsync; 1264if (!errorLocations.HasFlag(ErrorLocations.Constructor)) 1270if (errorLocations == ErrorLocations.EndBuildAsync) 1296if (errorLocations.HasFlag(ErrorLocations.EndBuildAsync) 1317var expectedQueryOccurrences = errorLocations.HasFlag(ErrorLocations.GetCacheResultAsync) 1342SetEnvironmentForErrorLocations(ErrorLocations.EndBuildAsync, ErrorKind.Exception); 1649private void SetEnvironmentForErrorLocations(ErrorLocations errorLocations, ErrorKind errorKind) 1651foreach (var enumValue in Enum.GetValues(typeof(ErrorLocations))) 1653var typedValue = (ErrorLocations)enumValue;