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)
85
entry.Builder = (IRequestBuilder)
_mockRequestCallback
;
106
TaskItem 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();