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