INNER CODE UNIT · C#
rows
JetBrains/godot-support · debugger/debugger-worker-tests/src/ChildChunkingTests.cs:225
var rows = factory.Split(0, ChunkSize * ChunkSize + 1).ToList();
Assert.That(rows, Has.Count.EqualTo(2), "Precondition: the run is chunked");
Assert.That(factory.CreatedChildren, Is.Zero,
"Listing the top-level chunks must not evaluate a single child - an unexpanded chunk has to be free");
}
[Test]
public void ExpandingOneChunkBuildsOnlyThatChunksChildren()
{
var factory = new CountingFactory();
var rows = factory.Split(0, 2 * ChunkSize).ToList();
var firstChunkChildren = AsGroup(rows[0]).Children.ToList();
Assert.That(firstChunkChildren, Has.Count.EqualTo(ChunkSize));
Assert.That(factory.CreatedChildren, Is.EqualTo(ChunkSize),
"Expanding one chunk must not build the children of its siblings");