16 references to AssemblyMockCache
Microsoft.Build.Engine.UnitTests (16)
ProjectCache\ProjectCacheTests.cs (16)
49private const string AssemblyMockCache = nameof(AssemblyMockCache); 806mockLogger.FullLog.ShouldContain($"{AssemblyMockCache}: BeginBuildAsync"); 807Regex.Matches(mockLogger.FullLog, $"{AssemblyMockCache}: GetCacheResultAsync for").Count.ShouldBe(graph.ProjectNodes.Count); 808mockLogger.FullLog.ShouldContain($"{AssemblyMockCache}: EndBuildAsync"); 844mockLogger.FullLog.ShouldContain($"{AssemblyMockCache}: GetCacheResultAsync for {node.ProjectInstance.FullPath}"); 951logger.FullLog.ShouldContain($"Loading the following project cache plugin: {AssemblyMockCache}"); 1223logger.FullLog.ShouldNotContain($"{AssemblyMockCache}: GetCacheResultAsync for"); 1224logger.FullLog.ShouldNotContain($"{AssemblyMockCache}: EndBuildAsync"); 1228StringShouldContainSubstring(logger.FullLog, $"{AssemblyMockCache}: GetCacheResultAsync for", expectedOccurrences: 1); 1229StringShouldContainSubstring(logger.FullLog, $"{AssemblyMockCache}: EndBuildAsync", expectedOccurrences: 1); 1327logger.FullLog.ShouldNotContain($"{AssemblyMockCache}: GetCacheResultAsync for"); 1328logger.FullLog.ShouldNotContain($"{AssemblyMockCache}: EndBuildAsync"); 1337StringShouldContainSubstring(logger.FullLog, $"{AssemblyMockCache}: GetCacheResultAsync for", expectedQueryOccurrences); 1339StringShouldContainSubstring(logger.FullLog, $"{AssemblyMockCache}: EndBuildAsync", expectedOccurrences: 1); 1370StringShouldContainSubstring(buildSession.Logger.FullLog, $"{nameof(AssemblyMockCache)}: EndBuildAsync", expectedOccurrences: 1); 1520StringShouldContainSubstring(logger.FullLog, $"{AssemblyMockCache}: GetCacheResultAsync for", graph.ProjectNodes.Count);