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