fixes .net 4.8 build for WinzipAesCryptoStream tests

This commit is contained in:
Daniel Sabel
2026-03-16 08:04:06 +01:00
parent 63e83dff5d
commit 642371f87e

View File

@@ -242,7 +242,11 @@ public class WinzipAesCryptoStreamTests
chunkPattern[chunkIndex % chunkPattern.Length],
totalLength - offset
);
#if NET48
int bytesRead = await stream.ReadAsync(actual, offset, requested);
#else
int bytesRead = await stream.ReadAsync(actual.AsMemory(offset, requested));
#endif
Assert.True(bytesRead > 0);
offset += bytesRead;
chunkIndex++;