40 references to ErrorLocations
Microsoft.Build.Engine.UnitTests (40)
ProjectCache\ProjectCacheTests.cs (40)
1087yield return new object[] { ErrorLocations.Constructor, ErrorKind.Exception }; 1091yield return new object[] { ErrorLocations.BeginBuildAsync, errorKind }; 1092yield return new object[] { ErrorLocations.BeginBuildAsync | ErrorLocations.GetCacheResultAsync, errorKind }; 1093yield return new object[] { ErrorLocations.BeginBuildAsync | ErrorLocations.GetCacheResultAsync | ErrorLocations.EndBuildAsync, errorKind }; 1094yield return new object[] { ErrorLocations.BeginBuildAsync | ErrorLocations.EndBuildAsync, errorKind }; 1096yield return new object[] { ErrorLocations.GetCacheResultAsync, errorKind }; 1097yield return new object[] { ErrorLocations.GetCacheResultAsync | ErrorLocations.EndBuildAsync, errorKind }; 1099yield return new object[] { ErrorLocations.EndBuildAsync, errorKind }; 1106public void EngineShouldHandleExceptionsFromCachePluginViaBuildParameters(ErrorLocations errorLocations, ErrorKind errorKind) 1135var exceptionsThatEndUpInBuildResult = 1136ErrorLocations.Constructor | ErrorLocations.BeginBuildAsync | ErrorLocations.GetCacheResultAsync; 1156if (errorLocations == ErrorLocations.EndBuildAsync) 1168var exceptionsThatPreventEndBuildFromThrowing = ErrorLocations.Constructor | 1169ErrorLocations.BeginBuildAsync; 1172!errorLocations.HasFlag(ErrorLocations.EndBuildAsync)) 1176else if (errorLocations.HasFlag(ErrorLocations.EndBuildAsync)) 1200var exceptionsThatShouldPreventCacheQueryAndEndBuildAsync = ErrorLocations.Constructor | ErrorLocations.BeginBuildAsync; 1223public void EngineShouldHandleExceptionsFromCachePluginViaGraphBuild(ErrorLocations errorLocations, ErrorKind errorKind) 1225const ErrorLocations exceptionsThatShouldPreventCacheQueryAndEndBuildAsync = ErrorLocations.Constructor | ErrorLocations.BeginBuildAsync; 1261if (!errorLocations.HasFlag(ErrorLocations.Constructor)) 1267if (errorLocations == ErrorLocations.EndBuildAsync) 1293if (errorLocations.HasFlag(ErrorLocations.EndBuildAsync) 1314var expectedQueryOccurrences = errorLocations.HasFlag(ErrorLocations.GetCacheResultAsync) 1339SetEnvironmentForErrorLocations(ErrorLocations.EndBuildAsync, ErrorKind.Exception); 1646private void SetEnvironmentForErrorLocations(ErrorLocations errorLocations, ErrorKind errorKind) 1648foreach (var enumValue in Enum.GetValues(typeof(ErrorLocations))) 1650var typedValue = (ErrorLocations)enumValue;