12 references to WriteData
Microsoft.AspNetCore.Shared.Tests (12)
SegmentWriteStreamTests.cs (12)
49
foreach (var datum in
WriteData
)
55
Assert.Equal(
WriteData
.Length, stream.Length);
56
Assert.Equal((
WriteData
.Length + segmentSize - 1) / segmentSize, segments.Count);
58
for (var i = 0; i <
WriteData
.Length; i += segmentSize)
60
var expectedSegmentSize = Math.Min(segmentSize,
WriteData
.Length - i);
82
for (var i = 0; i <
WriteData
.Length; i += writeSize)
84
stream.Write(
WriteData
, i, Math.Min(writeSize,
WriteData
.Length - i));
88
Assert.Equal(
WriteData
.Length, stream.Length);
89
Assert.Equal((
WriteData
.Length + segmentSize - 1) / segmentSize, segments.Count);
91
for (var i = 0; i <
WriteData
.Length; i += segmentSize)
93
var expectedSegmentSize = Math.Min(segmentSize,
WriteData
.Length - i);