Skip to content

Commit

Permalink
Verify stream length
Browse files Browse the repository at this point in the history
  • Loading branch information
sakno committed Dec 28, 2024
1 parent 83b41e5 commit 57c58ae
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/DotNext.Tests/IO/StreamExtensionsTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ public static void ReadBytesFromCombinedStream()
public static void CombineManyStreams(byte streamCount)
{
using var stream = GetStreams(streamCount).Combine(leaveOpen: false);
Equal(streamCount, stream.Length);
var actual = new byte[streamCount];
stream.ReadExactly(actual);
var expected = Set.Range<byte, EnclosedEndpoint<byte>, DisclosedEndpoint<byte>>(0, streamCount);
Expand Down

0 comments on commit 57c58ae

Please sign in to comment.