Update SegmentedPoolTests.cs

fix: updated test comments
This commit is contained in:
stdranges
2025-11-24 20:30:49 +00:00
committed by 0xJ1M
parent 0ba3a9fef5
commit dfbdf905fe

View File

@@ -481,7 +481,7 @@ namespace UnmanagedMMUTests
public void TrimWhenFreeSegmentCountLessThanMinSegmentsDoesNothing()
{
nuint segmentSize = 1024;
nuint segmentSize = 1024; // 1 KiB for the test
int initialSegments = 32;
SegmentedPool pool = new SegmentedPool(segmentSize, initialSegments);
@@ -505,7 +505,7 @@ namespace UnmanagedMMUTests
public void TrimWhenFreeSegmentGreaterThanMinSegmentsTrimsFreeSegmentsToNewSize()
{
nuint segmentSize = 1024;
nuint segmentSize = 1024; // 1 KiB for the test
int initialSegments = 32;
SegmentedPool pool = new SegmentedPool(segmentSize, initialSegments);
@@ -553,7 +553,7 @@ namespace UnmanagedMMUTests
[Fact]
public void ResetNoTrimClearsAllActivateSegments()
{
nuint segmentSize = 300; // 1 KiB for the test
nuint segmentSize = 300; // 300 bytes for the test
int initialSegments = 8;
SegmentedPool pool = new SegmentedPool(segmentSize, initialSegments);
@@ -596,7 +596,7 @@ namespace UnmanagedMMUTests
[Fact]
public void ResetWithTrimClearsAllActivateSegments()
{
nuint segmentSize = 300; // 1 KiB for the test
nuint segmentSize = 300; // 300 bytes for the test
int initialSegments = 64;
SegmentedPool pool = new SegmentedPool(segmentSize, initialSegments);