19 instantiations of StateType
Microsoft.CodeAnalysis.Workspaces.UnitTests (19)
UtilityTest\SpecializedTasksTests.cs (19)
77
var arg = new
StateType
();
91
var arg = new
StateType
();
114
var arg = new
StateType
();
134
var arg = new
StateType
();
165
var arg = new
StateType
();
191
var arg = new
StateType
();
222
var arg = new
StateType
();
248
var arg = new
StateType
();
282
var arg = new
StateType
();
315
var arg = new
StateType
();
349
var arg = new
StateType
();
374
var arg = new
StateType
();
396
var arg = new
StateType
();
424
var arg = new
StateType
();
451
var arg = new
StateType
();
476
var arg = new
StateType
();
507
var arg = new
StateType
();
525
var arg = new
StateType
();
546
var arg = new
StateType
();
58 references to StateType
Microsoft.CodeAnalysis.Workspaces.UnitTests (58)
UtilityTest\SpecializedTasksTests.cs (58)
75
Func<
StateType
, CancellationToken, ValueTask<IntermediateType>> func = (_, _) => new(new IntermediateType());
76
Func<IntermediateType,
StateType
, ResultType> transform = (_, _) => new();
77
var
arg = new StateType();
82
Assert.Throws<ArgumentNullException>("transform", () => SpecializedTasks.TransformWithoutIntermediateCancellationExceptionAsync<
StateType
, IntermediateType, ResultType>(func, null!, arg, cancellationToken));
89
Func<
StateType
, CancellationToken, ValueTask<IntermediateType>> func = (_, _) => new(new IntermediateType());
90
Func<IntermediateType,
StateType
, ResultType> transform = (_, _) => new();
91
var
arg = new StateType();
108
Func<
StateType
, CancellationToken, ValueTask<IntermediateType>> func = (_, _) => new(new IntermediateType());
109
Func<IntermediateType,
StateType
, ResultType> transform = (_, _) =>
114
var
arg = new StateType();
127
Func<
StateType
, CancellationToken, ValueTask<IntermediateType>> func = async (_, _) =>
133
Func<IntermediateType,
StateType
, ResultType> transform = (_, _) => new();
134
var
arg = new StateType();
154
Func<
StateType
, CancellationToken, ValueTask<IntermediateType>> func = async (_, _) =>
160
Func<IntermediateType,
StateType
, ResultType> transform = (_, _) =>
165
var
arg = new StateType();
185
Func<
StateType
, CancellationToken, ValueTask<IntermediateType>> func = (_, _) => new(Task.FromCanceled<IntermediateType>(cancellationToken));
186
Func<IntermediateType,
StateType
, ResultType> transform = (_, _) =>
191
var
arg = new StateType();
210
Func<
StateType
, CancellationToken, ValueTask<IntermediateType>> func = async (_, _) =>
217
Func<IntermediateType,
StateType
, ResultType> transform = (_, _) =>
222
var
arg = new StateType();
242
Func<
StateType
, CancellationToken, ValueTask<IntermediateType>> func = (_, _) => new(Task.FromCanceled<IntermediateType>(unexpectedCts.Token));
243
Func<IntermediateType,
StateType
, ResultType> transform = (_, _) =>
248
var
arg = new StateType();
270
Func<
StateType
, CancellationToken, ValueTask<IntermediateType>> func = async (_, _) =>
277
Func<IntermediateType,
StateType
, ResultType> transform = (_, _) =>
282
var
arg = new StateType();
309
Func<
StateType
, CancellationToken, ValueTask<IntermediateType>> func = (_, _) => new(Task.FromCanceled<IntermediateType>(unexpectedCts.Token));
310
Func<IntermediateType,
StateType
, ResultType> transform = (_, _) =>
315
var
arg = new StateType();
337
Func<
StateType
, CancellationToken, ValueTask<IntermediateType>> func = async (_, _) =>
344
Func<IntermediateType,
StateType
, ResultType> transform = (_, _) =>
349
var
arg = new StateType();
368
Func<
StateType
, CancellationToken, ValueTask<IntermediateType>> func = (_, _) => throw fault;
369
Func<IntermediateType,
StateType
, ResultType> transform = (_, _) =>
374
var
arg = new StateType();
390
Func<
StateType
, CancellationToken, ValueTask<IntermediateType>> func = (_, _) => new(Task.FromException<IntermediateType>(fault));
391
Func<IntermediateType,
StateType
, ResultType> transform = (_, _) =>
396
var
arg = new StateType();
413
Func<
StateType
, CancellationToken, ValueTask<IntermediateType>> func = async (_, _) =>
419
Func<IntermediateType,
StateType
, ResultType> transform = (_, _) =>
424
var
arg = new StateType();
445
Func<
StateType
, CancellationToken, ValueTask<IntermediateType>> func = (_, _) => throw fault;
446
Func<IntermediateType,
StateType
, ResultType> transform = (_, _) =>
451
var
arg = new StateType();
470
Func<
StateType
, CancellationToken, ValueTask<IntermediateType>> func = (_, _) => new(Task.FromException<IntermediateType>(fault));
471
Func<IntermediateType,
StateType
, ResultType> transform = (_, _) =>
476
var
arg = new StateType();
496
Func<
StateType
, CancellationToken, ValueTask<IntermediateType>> func = async (_, _) =>
502
Func<IntermediateType,
StateType
, ResultType> transform = (_, _) =>
507
var
arg = new StateType();
523
Func<
StateType
, CancellationToken, ValueTask<IntermediateType>> func = (_, _) => new(new IntermediateType());
524
Func<IntermediateType,
StateType
, ResultType> transform = (_, _) => throw fault;
525
var
arg = new StateType();
539
Func<
StateType
, CancellationToken, ValueTask<IntermediateType>> func = async (_, _) =>
545
Func<IntermediateType,
StateType
, ResultType> transform = (_, _) => throw fault;
546
var
arg = new StateType();