1 instantiation of RepeatContext
Microsoft.AspNetCore.InternalTesting (1)
xunit\AspNetTestRunner.cs (1)
113
var repeatContext = new
RepeatContext
(repeatAttribute.RunCount);
9 references to RepeatContext
Microsoft.AspNetCore.InternalTesting (5)
RepeatContext.cs (3)
10
private static readonly AsyncLocal<
RepeatContext
> _current = new AsyncLocal<
RepeatContext
>();
12
public static
RepeatContext
Current
xunit\AspNetTestRunner.cs (2)
113
var
repeatContext = new RepeatContext(repeatAttribute.RunCount);
114
RepeatContext
.Current = repeatContext;
Microsoft.AspNetCore.InternalTesting.Tests (4)
RepeatTest.cs (4)
17
Assert.Equal(5,
RepeatContext
.Current.Limit);
24
Assert.Equal(
RepeatContext
.Current.CurrentIteration, _runCount);
31
Assert.Equal(10,
RepeatContext
.Current.Limit);
40
Assert.Equal(1,
RepeatContext
.Current.Limit);