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