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