40 references to ErrorLocations
Microsoft.Build.Engine.UnitTests (40)
ProjectCache\ProjectCacheTests.cs (40)
1088yield return new object[] { ErrorLocations.Constructor, ErrorKind.Exception }; 1092yield return new object[] { ErrorLocations.BeginBuildAsync, errorKind }; 1093yield return new object[] { ErrorLocations.BeginBuildAsync | ErrorLocations.GetCacheResultAsync, errorKind }; 1094yield return new object[] { ErrorLocations.BeginBuildAsync | ErrorLocations.GetCacheResultAsync | ErrorLocations.EndBuildAsync, errorKind }; 1095yield return new object[] { ErrorLocations.BeginBuildAsync | ErrorLocations.EndBuildAsync, errorKind }; 1097yield return new object[] { ErrorLocations.GetCacheResultAsync, errorKind }; 1098yield return new object[] { ErrorLocations.GetCacheResultAsync | ErrorLocations.EndBuildAsync, errorKind }; 1100yield return new object[] { ErrorLocations.EndBuildAsync, errorKind }; 1107public void EngineShouldHandleExceptionsFromCachePluginViaBuildParameters(ErrorLocations errorLocations, ErrorKind errorKind) 1136var exceptionsThatEndUpInBuildResult = 1137ErrorLocations.Constructor | ErrorLocations.BeginBuildAsync | ErrorLocations.GetCacheResultAsync; 1157if (errorLocations == ErrorLocations.EndBuildAsync) 1169var exceptionsThatPreventEndBuildFromThrowing = ErrorLocations.Constructor | 1170ErrorLocations.BeginBuildAsync; 1173!errorLocations.HasFlag(ErrorLocations.EndBuildAsync)) 1177else if (errorLocations.HasFlag(ErrorLocations.EndBuildAsync)) 1201var exceptionsThatShouldPreventCacheQueryAndEndBuildAsync = ErrorLocations.Constructor | ErrorLocations.BeginBuildAsync; 1224public void EngineShouldHandleExceptionsFromCachePluginViaGraphBuild(ErrorLocations errorLocations, ErrorKind errorKind) 1226const ErrorLocations exceptionsThatShouldPreventCacheQueryAndEndBuildAsync = ErrorLocations.Constructor | ErrorLocations.BeginBuildAsync; 1262if (!errorLocations.HasFlag(ErrorLocations.Constructor)) 1268if (errorLocations == ErrorLocations.EndBuildAsync) 1294if (errorLocations.HasFlag(ErrorLocations.EndBuildAsync) 1315var expectedQueryOccurrences = errorLocations.HasFlag(ErrorLocations.GetCacheResultAsync) 1340SetEnvironmentForErrorLocations(ErrorLocations.EndBuildAsync, ErrorKind.Exception); 1647private void SetEnvironmentForErrorLocations(ErrorLocations errorLocations, ErrorKind errorKind) 1649foreach (var enumValue in Enum.GetValues(typeof(ErrorLocations))) 1651var typedValue = (ErrorLocations)enumValue;