Commit 3085c36
committed
Improve LOH allocation check in MemoryStreamSlim test
Previously, the test only checked for LOH allocation on the first loop iteration, which could miss allocations occurring later. Now, a boolean flag tracks if LOH memory is allocated at any point during the test loops, and a final assertion ensures LOH allocation occurred. This makes the test more robust and reliable.1 parent 28ca633 commit 3085c36
1 file changed
Lines changed: 8 additions & 3 deletions
File tree
- Source/Tst/KZDev.PerfUtils.Memory.Heap.Sequential.UnitTests
Source/Tst/KZDev.PerfUtils.Memory.Heap.Sequential.UnitTests/UsingMemoryStreamSlimReleaseBuffers.cs
Lines changed: 8 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
54 | 55 | | |
55 | 56 | | |
56 | 57 | | |
| |||
59 | 60 | | |
60 | 61 | | |
61 | 62 | | |
62 | | - | |
63 | | - | |
| 63 | + | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
66 | 69 | | |
67 | 70 | | |
| 71 | + | |
| 72 | + | |
68 | 73 | | |
69 | 74 | | |
70 | 75 | | |
| |||
0 commit comments