1 write to FileLength
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (1)
ResponseSendFileTests.cs (1)
32
FileLength
= new FileInfo(AbsoluteFilePath).Length;
11 references to FileLength
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (11)
ResponseSendFileTests.cs (11)
75
Assert.Equal(
FileLength
, (await response.Content.ReadAsByteArrayAsync()).Length);
94
Assert.Equal(
FileLength
, (await response.Content.ReadAsByteArrayAsync()).Length);
113
Assert.Equal(
FileLength
, (await response.Content.ReadAsByteArrayAsync()).Length);
133
Assert.Equal(
FileLength
* 2, (await response.Content.ReadAsByteArrayAsync()).Length);
144
return sendFile.SendFileAsync(AbsoluteFilePath, 0,
FileLength
/ 2, CancellationToken.None);
152
Assert.Equal(
FileLength
/ 2, (await response.Content.ReadAsByteArrayAsync()).Length);
220
httpContext.Response.Headers["Content-lenGth"] =
FileLength
.ToString(CultureInfo.InvariantCulture);
228
Assert.Equal(
FileLength
.ToString(CultureInfo.InvariantCulture), contentLength.First());
230
Assert.Equal(
FileLength
, (await response.Content.ReadAsByteArrayAsync()).Length);
345
Assert.Equal(
FileLength
* 2, (await response.Content.ReadAsByteArrayAsync()).Length);
363
Assert.Equal(
FileLength
* 2, (await response.Content.ReadAsByteArrayAsync()).Length);