235 references to Batches
Microsoft.AspNetCore.Components.Tests (235)
CascadingParameterTest.cs (32)
34
var batch = renderer.
Batches
.Single();
74
var firstBatch = renderer.
Batches
.Single();
83
Assert.Equal(2, renderer.
Batches
.Count);
84
var secondBatch = renderer.
Batches
[1];
120
var firstBatch = renderer.
Batches
.Single();
129
Assert.Equal(2, renderer.
Batches
.Count);
130
var secondBatch = renderer.
Batches
[1];
165
var firstBatch = renderer.
Batches
.Single();
174
Assert.Equal(2, renderer.
Batches
.Count);
175
var secondBatch = renderer.
Batches
[1];
215
var firstBatch = renderer.
Batches
.Single();
226
Assert.Equal(2, renderer.
Batches
.Count);
227
var secondBatch = renderer.
Batches
[1];
274
var firstBatch = renderer.
Batches
.Single();
293
Assert.Equal(2, renderer.
Batches
.Count);
294
var secondBatch = renderer.
Batches
[1];
375
var firstBatch = renderer.
Batches
.Single();
381
Assert.Equal(2, renderer.
Batches
.Count);
416
var batch = renderer.
Batches
.Single();
466
var batch = renderer.
Batches
.Skip(1).Single();
502
var batch = renderer.
Batches
.Single();
539
var batch = renderer.
Batches
.Single();
584
var firstBatch = renderer.
Batches
.Single();
600
Assert.Equal(2, renderer.
Batches
.Count);
601
var secondBatch = renderer.
Batches
[1];
616
Assert.Equal(3, renderer.
Batches
.Count);
617
var thirdBatch = renderer.
Batches
[2];
654
var firstBatch = renderer.
Batches
.Single();
669
var secondBatch = renderer.
Batches
[1];
744
var firstBatch = renderer.
Batches
.Single();
764
Assert.Equal(2, renderer.
Batches
.Count);
765
var secondBatch = renderer.
Batches
[1];
ComponentBaseTest.cs (23)
55
Assert.Single(renderer.
Batches
);
79
Assert.Single(renderer.
Batches
);
98
Assert.Single(renderer.
Batches
);
122
Assert.Single(renderer.
Batches
);
146
Assert.Single(renderer.
Batches
);
166
Assert.Single(renderer.
Batches
);
175
Assert.Equal(2, renderer.
Batches
.Count);
204
Assert.Single(renderer.
Batches
);
217
Assert.Equal(2, renderer.
Batches
.Count);
228
Assert.Equal(3, renderer.
Batches
.Count);
246
Assert.Single(renderer.
Batches
);
256
Assert.Equal(2, renderer.
Batches
.Count);
270
Assert.Single(renderer.
Batches
);
283
Assert.Single(renderer.
Batches
);
290
Assert.Equal(2, renderer.
Batches
.Count);
298
Assert.Equal(2, renderer.
Batches
.Count);
314
Assert.Single(renderer.
Batches
);
329
Assert.Single(renderer.
Batches
);
337
Assert.Equal(2, renderer.
Batches
.Count);
348
Assert.Equal(2, renderer.
Batches
.Count);
372
Assert.NotEmpty(renderer.
Batches
);
389
Assert.Single(renderer.
Batches
);
398
Assert.Single(renderer.
Batches
);
DynamicComponentTest.cs (2)
59
var batch = renderer.
Batches
.Single();
90
var batch = renderer.
Batches
.Single();
LayoutViewTest.cs (9)
32
Assert.Single(_renderer.
Batches
);
51
Assert.Single(_renderer.
Batches
);
68
var batch = _renderer.
Batches
.Single();
98
var batch = _renderer.
Batches
.Single();
130
var batch = _renderer.
Batches
.Single();
179
Assert.Equal(2, _renderer.
Batches
.Count);
180
var batch = _renderer.
Batches
[1];
221
Assert.Equal(2, _renderer.
Batches
.Count);
222
var batch = _renderer.
Batches
[1];
RendererTest.cs (161)
45
var batch = renderer.
Batches
.Single();
73
var batch = renderer.
Batches
.Single();
106
var batch = renderer.
Batches
.Single();
119
var secondBatch = renderer.
Batches
.Skip(1).Single();
142
var nestedComponentFrame = renderer.
Batches
.Single()
151
var batch = renderer.
Batches
[1];
164
var secondBatch = renderer.
Batches
[2];
191
Assert.Equal(5, renderer.
Batches
.Count);
194
var create = renderer.
Batches
[0];
209
var update = renderer.
Batches
[i];
288
var batch = renderer.
Batches
.Single();
304
var batch2 = renderer.
Batches
.Skip(1).Single();
553
var eventHandlerId = renderer.
Batches
.Single()
583
var eventHandlerId = renderer.
Batches
.Single()
611
var eventHandlerId = renderer.
Batches
.Single()
634
var eventHandlerId = renderer.
Batches
.Single()
657
var eventHandlerId = renderer.
Batches
.Single()
680
var eventHandlerId = renderer.
Batches
.Single()
706
var eventHandlerId = renderer.
Batches
.Single()
737
var eventHandlerId = renderer.
Batches
.Single()
766
var eventHandlerId = renderer.
Batches
.Single()
797
var nestedComponentFrame = renderer.
Batches
.Single()
806
var eventHandlerId = renderer.
Batches
[1]
844
var eventHandlerId = renderer.
Batches
.Single()
887
var eventHandlerId = renderer.
Batches
.Single()
930
var eventHandlerId = renderer.
Batches
.Single()
969
var nestedComponentFrame = renderer.
Batches
.Single()
984
var eventHandlerId = renderer.
Batches
[1]
1032
var eventHandlerId = renderer.
Batches
[0]
1076
var eventHandlerId = renderer.
Batches
[0]
1115
var eventHandlerId = renderer.
Batches
[0]
1156
var eventHandlerId = renderer.
Batches
[0]
1198
var eventHandlerId = renderer.
Batches
[0]
1234
var eventHandlerId = renderer.
Batches
[0]
1275
var eventHandlerId = renderer.
Batches
[0]
1317
var eventHandlerId = renderer.
Batches
[0]
1352
var eventHandlerId = renderer.
Batches
[0]
1384
var eventHandlerId = renderer.
Batches
[0]
1418
var eventHandlerId = renderer.
Batches
[0]
1453
var eventHandlerId = renderer.
Batches
[0]
1485
var eventHandlerId = renderer.
Batches
[0]
1520
var eventHandlerId = renderer.
Batches
[0]
1555
var eventHandlerId = renderer.
Batches
[0]
1587
var eventHandlerId = renderer.
Batches
[0]
1622
var eventHandlerId = renderer.
Batches
[0]
1659
var eventHandlerId = renderer.
Batches
[0]
1694
var eventHandlerId = renderer.
Batches
[0]
1732
var eventHandlerId = renderer.
Batches
[0]
1771
var eventHandlerId = renderer.
Batches
[0]
1809
var eventHandlerId = renderer.
Batches
[0]
1850
var eventHandlerId = renderer.
Batches
[0]
1891
var eventHandlerId = renderer.
Batches
[0]
1928
var eventHandlerId = renderer.
Batches
[0]
1968
var eventHandlerId = renderer.
Batches
[0]
2010
var renderer1Batch = renderer1.
Batches
.Single();
2020
var renderer2Batch = renderer2.
Batches
.Single();
2047
var nestedComponentFrame = renderer.
Batches
.Single()
2057
var batch = renderer.
Batches
[1];
2088
var originalComponentFrame = renderer.
Batches
.Single()
2124
var childComponentId = renderer.
Batches
.Single()
2132
var diff = renderer.
Batches
[1].DiffsByComponentId[childComponentId].Single();
2141
AssertFrame.Text(renderer.
Batches
[1].ReferenceFrames[0], "second");
2162
var childComponentId = renderer.
Batches
.Single()
2170
var diff = renderer.
Batches
[1].DiffsByComponentId[childComponentId].Single();
2179
AssertFrame.Attribute(renderer.
Batches
[1].ReferenceFrames[0], "class", "second");
2202
var childComponentId = renderer.
Batches
.Single()
2211
Assert.False(renderer.
Batches
[1].DiffsByComponentId.ContainsKey(childComponentId));
2237
var batch = renderer.
Batches
.Single();
2255
Assert.Equal(2, renderer.
Batches
.Count);
2256
Assert.Equal(new[] { 1, 3 }, renderer.
Batches
[1].DisposedComponentIDs);
2262
Assert.Equal(2, renderer.
Batches
.Count);
2296
Assert.Equal(2, renderer.
Batches
.Count);
2297
Assert.Equal(new[] { 1, 2 }, renderer.
Batches
[1].DisposedComponentIDs);
2332
Assert.Equal(2, renderer.
Batches
.Count);
2333
Assert.Equal(new[] { 1, }, renderer.
Batches
[1].DisposedComponentIDs);
2366
Assert.Equal(2, renderer.
Batches
.Count);
2367
Assert.Equal(new[] { 1, }, renderer.
Batches
[1].DisposedComponentIDs);
2406
Assert.Equal(2, renderer.
Batches
.Count);
2407
Assert.Equal(new[] { 1, }, renderer.
Batches
[1].DisposedComponentIDs);
2450
Assert.Equal(2, renderer.
Batches
.Count);
2451
Assert.Equal(new[] { 1, }, renderer.
Batches
[1].DisposedComponentIDs);
2490
Assert.Equal(2, renderer.
Batches
.Count);
2491
Assert.Equal(new[] { 1, }, renderer.
Batches
[1].DisposedComponentIDs);
2528
Assert.Equal(2, renderer.
Batches
.Count);
2529
Assert.Equal(new[] { 1, }, renderer.
Batches
[1].DisposedComponentIDs);
2591
Assert.Equal(2, renderer.
Batches
.Count);
2592
Assert.Equal(new[] { 1, 2, 3 }, renderer.
Batches
[1].DisposedComponentIDs);
2639
var batch = renderer.
Batches
.Single();
2682
var origEventHandlerId = renderer.
Batches
.Single()
2724
var origEventHandlerId = renderer.
Batches
.Single()
2766
var batch = renderer.
Batches
.Single();
2810
var origEventHandlerId = renderer.
Batches
.Single()
2858
var origBatchReferenceFrames = renderer.
Batches
.Single().ReferenceFrames;
2867
Assert.Single(renderer.
Batches
);
2876
Assert.Equal(2, renderer.
Batches
.Count);
2877
var batch = renderer.
Batches
.Last();
2944
var batch1 = renderer.
Batches
.Single();
2953
var batch2 = renderer.
Batches
.Skip(1).Single();
2980
var batch = renderer.
Batches
.Single();
3050
var childComponentId = renderer.
Batches
.Single()
3055
var origEventHandlerId = renderer.
Batches
.Single()
3067
var newBatch = renderer.
Batches
.Skip(1).Single();
3088
var checkboxChangeEventHandlerId = renderer.
Batches
.Single()
3098
var latestBatch = renderer.
Batches
.Last();
3103
Assert.Equal(2, renderer.
Batches
.Count);
3130
var checkboxChangeEventHandlerId = renderer.
Batches
.Single()
3169
var checkboxChangeEventHandlerId = renderer.
Batches
.Single()
3209
var checkboxChangeEventHandlerId = renderer.
Batches
.Single()
3249
var checkboxChangeEventHandlerId = renderer.
Batches
.Single()
3292
var latestBatch = renderer.
Batches
.Skip(1).Single();
3419
var batch1 = renderer.
Batches
.Single();
3434
var batch2 = renderer.
Batches
.Skip(1).Single();
3505
var eventHandlerId = renderer.
Batches
.Single()
4179
Assert.Empty(renderer.
Batches
);
4202
Assert.Empty(renderer.
Batches
);
4218
var batch = renderer.
Batches
.Single();
4333
var eventHandlerId = renderer.
Batches
.Single()
4353
Assert.Equal(2, renderer.
Batches
.Count);
4354
var batch2 = renderer.
Batches
[1];
4381
var eventHandlerId = renderer.
Batches
.Single()
4405
Assert.Equal(i + 2, renderer.
Batches
.Count);
4406
var latestBatch = renderer.
Batches
.Last();
4561
var batch = renderer.
Batches
.Single();
4589
var errorBoundaries = renderer.
Batches
.Single().GetComponentFrames<TestErrorBoundary>()
4591
var errorThrowingComponentId = renderer.
Batches
.Single()
4599
Assert.Equal(2, renderer.
Batches
.Count);
4605
Assert.Equal(errorThrowingComponentId, renderer.
Batches
[1].DisposedComponentIDs.Single());
4626
var errorBoundaries = renderer.
Batches
.Single().GetComponentFrames<TestErrorBoundary>()
4628
var errorThrowingComponentId = renderer.
Batches
.Single()
4634
Assert.Equal(2, renderer.
Batches
.Count);
4639
Assert.Equal(3, renderer.
Batches
.Count);
4645
Assert.Equal(errorThrowingComponentId, renderer.
Batches
[2].DisposedComponentIDs.Single());
4664
var errorBoundaries = renderer.
Batches
.Single().GetComponentFrames<TestErrorBoundary>()
4666
var errorThrowingComponentId = renderer.
Batches
.Single()
4668
var eventHandlerId = renderer.
Batches
.Single().ReferenceFrames
4677
Assert.Equal(2, renderer.
Batches
.Count);
4683
Assert.Equal(errorThrowingComponentId, renderer.
Batches
[1].DisposedComponentIDs.Single());
4703
var errorBoundaries = renderer.
Batches
.Single().GetComponentFrames<TestErrorBoundary>()
4705
var errorThrowingComponentId = renderer.
Batches
.Single()
4707
var eventHandlerId = renderer.
Batches
.Single().ReferenceFrames
4713
Assert.Single(renderer.
Batches
);
4721
Assert.Equal(2, renderer.
Batches
.Count);
4727
Assert.Equal(errorThrowingComponentId, renderer.
Batches
[1].DisposedComponentIDs.Single());
4752
var errorBoundaries = renderer.
Batches
.Single().GetComponentFrames<TestErrorBoundary>()
4754
var errorThrowingComponentId = renderer.
Batches
.Single()
4756
var eventHandlerId = renderer.
Batches
.Single().ReferenceFrames
4762
Assert.Single(renderer.
Batches
);
4770
Assert.Equal(2, renderer.
Batches
.Count);
4771
Assert.Contains(errorThrowingComponentId, renderer.
Batches
.Last().DisposedComponentIDs);
4776
Assert.Equal(2, renderer.
Batches
.Count); // Didn't re-render as the error boundary was already gone
4800
Assert.Equal(2, renderer.
Batches
.Count);
4802
var nestedDisposableComponentFrame = renderer.
Batches
[0]
4804
var nestedAsyncDisposableComponentFrame = renderer.
Batches
[0]
4812
Assert.Equal(3, renderer.
Batches
.Count);
4813
var batch = renderer.
Batches
.Last();
4876
var nestedComponentFrame = renderer.
Batches
[0]
4916
Assert.Single(renderer.
Batches
);
4918
var nestedDisposableComponentFrame = renderer.
Batches
[0]
4920
var nestedAsyncDisposableComponentFrame = renderer.
Batches
[0]
5083
var batch = renderer.
Batches
.Single();
5108
var batch = renderer.
Batches
.Single();
RouteViewTest.cs (4)
61
var batch = _renderer.
Batches
.Single();
111
var batch = _renderer.
Batches
.Single();
134
var batch = _renderer.
Batches
.Single();
158
var batch = _renderer.
Batches
.Single();
Routing\RouterTest.cs (3)
197
var renderedFrame = _renderer.
Batches
.First().ReferenceFrames.First();
243
var renderedFrame = _renderer.
Batches
.First().ReferenceFrames.First();
263
var renderedFrame = _renderer.
Batches
.First().ReferenceFrames.First();
src\Components\Shared\test\TestRenderer.cs (1)
116
Batches
.Add(capturedBatch);