1 write to FileLength
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (1)
ResponseSendFileTests.cs (1)
32
FileLength
= new FileInfo(AbsoluteFilePath).Length;
12 references to FileLength
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (12)
ResponseSendFileTests.cs (12)
33
Assert.True(
FileLength
> 0, "FileLength is 0");
76
Assert.Equal(
FileLength
, (await response.Content.ReadAsByteArrayAsync()).Length);
95
Assert.Equal(
FileLength
, (await response.Content.ReadAsByteArrayAsync()).Length);
114
Assert.Equal(
FileLength
, (await response.Content.ReadAsByteArrayAsync()).Length);
134
Assert.Equal(
FileLength
* 2, (await response.Content.ReadAsByteArrayAsync()).Length);
145
return sendFile.SendFileAsync(AbsoluteFilePath, 0,
FileLength
/ 2, CancellationToken.None);
153
Assert.Equal(
FileLength
/ 2, (await response.Content.ReadAsByteArrayAsync()).Length);
221
httpContext.Response.Headers["Content-lenGth"] =
FileLength
.ToString(CultureInfo.InvariantCulture);
229
Assert.Equal(
FileLength
.ToString(CultureInfo.InvariantCulture), contentLength.First());
231
Assert.Equal(
FileLength
, (await response.Content.ReadAsByteArrayAsync()).Length);
346
Assert.Equal(
FileLength
* 2, (await response.Content.ReadAsByteArrayAsync()).Length);
364
Assert.Equal(
FileLength
* 2, (await response.Content.ReadAsByteArrayAsync()).Length);