1 write to _mockRequestCallback
Microsoft.Build.Engine.UnitTests (1)
BackEnd\TaskHost_Tests.cs (1)
84_mockRequestCallback = new MockIRequestBuilderCallback(new BuildResult[] { buildResult });
17 references to _mockRequestCallback
Microsoft.Build.Engine.UnitTests (17)
BackEnd\TaskHost_Tests.cs (17)
85entry.Builder = (IRequestBuilder)_mockRequestCallback; 106TaskItem mockItemInCache = _mockRequestCallback.BuildResultsToReturn[0].ResultsByTarget["Build"].Items[0] as TaskItem; 780_mockRequestCallback.CoresToGrant = 0; 782_mockRequestCallback.LastRequestedCores.ShouldBe(2); 783_mockRequestCallback.LastWaitForCores.ShouldBeFalse(); 790_mockRequestCallback.CoresToGrant = 1; 792_mockRequestCallback.LastRequestedCores.ShouldBe(2); 793_mockRequestCallback.LastWaitForCores.ShouldBeFalse(); 796_mockRequestCallback.CoresToGrant = 1; 798_mockRequestCallback.LastRequestedCores.ShouldBe(3); 799_mockRequestCallback.LastWaitForCores.ShouldBeTrue(); 819_mockRequestCallback.CoresToGrant = 1; 824_mockRequestCallback.LastCoresToRelease.ShouldBe(1); 828_mockRequestCallback.LastWaitForCores.ShouldBeTrue(); 834_mockRequestCallback.CoresToGrant = 1; 839_mockRequestCallback.LastCoresToRelease.ShouldBe(1); 843_mockRequestCallback.LastWaitForCores.ShouldBeFalse();