1 write to _workSet
Microsoft.Build.Engine.UnitTests (1)
Graph\ParallelWorkSet_Tests.cs (1)
239
_workSet
= new ParallelWorkSet<string, string>(tt.DegreeOfParallelism, StringComparer.Ordinal, CancellationToken.None);
7 references to _workSet
Microsoft.Build.Engine.UnitTests (7)
Graph\ParallelWorkSet_Tests.cs (7)
120
_workSet
.AddWork("barKey", () => "barVal");
152
_workSet
.AddWork("barKey", () => "barVal");
245
_workSet
.AddWork(
267
Should.Throw<AggregateException>(() =>
_workSet
.WaitForAllWorkAndComplete()).InnerExceptions.ShouldBeSetEquivalentTo(observedExceptions);
271
_workSet
.WaitForAllWorkAndComplete();
272
_workSet
.IsCompleted.ShouldBeTrue();
273
_workSet
.CompletedWork.ShouldBeSameIgnoringOrder((IReadOnlyCollection<KeyValuePair<string, string>>)tt.ExpectedCompletedWork);