16 references to AssemblyMockCache
Microsoft.Build.Engine.UnitTests (16)
ProjectCache\ProjectCacheTests.cs (16)
47private const string AssemblyMockCache = nameof(AssemblyMockCache);
804mockLogger.FullLog.ShouldContain($"{AssemblyMockCache}: BeginBuildAsync");
805Regex.Matches(mockLogger.FullLog, $"{AssemblyMockCache}: GetCacheResultAsync for").Count.ShouldBe(graph.ProjectNodes.Count);
806mockLogger.FullLog.ShouldContain($"{AssemblyMockCache}: EndBuildAsync");
842mockLogger.FullLog.ShouldContain($"{AssemblyMockCache}: GetCacheResultAsync for {node.ProjectInstance.FullPath}");
949logger.FullLog.ShouldContain($"Loading the following project cache plugin: {AssemblyMockCache}");
1221logger.FullLog.ShouldNotContain($"{AssemblyMockCache}: GetCacheResultAsync for");
1222logger.FullLog.ShouldNotContain($"{AssemblyMockCache}: EndBuildAsync");
1226StringShouldContainSubstring(logger.FullLog, $"{AssemblyMockCache}: GetCacheResultAsync for", expectedOccurrences: 1);
1227StringShouldContainSubstring(logger.FullLog, $"{AssemblyMockCache}: EndBuildAsync", expectedOccurrences: 1);
1325logger.FullLog.ShouldNotContain($"{AssemblyMockCache}: GetCacheResultAsync for");
1326logger.FullLog.ShouldNotContain($"{AssemblyMockCache}: EndBuildAsync");
1335StringShouldContainSubstring(logger.FullLog, $"{AssemblyMockCache}: GetCacheResultAsync for", expectedQueryOccurrences);
1337StringShouldContainSubstring(logger.FullLog, $"{AssemblyMockCache}: EndBuildAsync", expectedOccurrences: 1);
1368StringShouldContainSubstring(buildSession.Logger.FullLog, $"{nameof(AssemblyMockCache)}: EndBuildAsync", expectedOccurrences: 1);
1518StringShouldContainSubstring(logger.FullLog, $"{AssemblyMockCache}: GetCacheResultAsync for", graph.ProjectNodes.Count);