40 references to Ranges
Microsoft.AspNetCore.HeaderParsing.Tests (3)
ParserTests.cs (3)
304Assert.Single(result.Ranges); 305Assert.Equal(200, result.Ranges.Single().From); 306Assert.Equal(1000, result.Ranges.Single().To);
Microsoft.AspNetCore.Http.Results (2)
src\Shared\RangeHelper\RangeHelper.cs (2)
67Debug.Assert(rangeHeader.Ranges.Count == 1); 69var ranges = rangeHeader.Ranges;
Microsoft.AspNetCore.Mvc.Core (2)
src\Shared\RangeHelper\RangeHelper.cs (2)
67Debug.Assert(rangeHeader.Ranges.Count == 1); 69var ranges = rangeHeader.Ranges;
Microsoft.AspNetCore.StaticAssets (2)
src\Shared\RangeHelper\RangeHelper.cs (2)
67Debug.Assert(rangeHeader.Ranges.Count == 1); 69var ranges = rangeHeader.Ranges;
Microsoft.AspNetCore.StaticFiles (2)
src\Shared\RangeHelper\RangeHelper.cs (2)
67Debug.Assert(rangeHeader.Ranges.Count == 1); 69var ranges = rangeHeader.Ranges;
Microsoft.AspNetCore.StaticFiles.FunctionalTests (2)
src\Shared\RangeHelper\RangeHelper.cs (2)
67Debug.Assert(rangeHeader.Ranges.Count == 1); 69var ranges = rangeHeader.Ranges;
Microsoft.Net.Http.Headers (6)
RangeHeaderValue.cs (6)
43Ranges.Add(new RangeItemHeaderValue(from, to)); 83foreach (var range in Ranges) 113HeaderUtilities.AreEqualCollections(Ranges, other.Ranges); 121foreach (var range in Ranges) 184var rangesLength = RangeItemHeaderValue.GetRangeItemListLength(input, current, result.Ranges);
Microsoft.Net.Http.Headers.Tests (21)
RangeHeaderValueTest.cs (19)
33range.Ranges.Add(new RangeItemHeaderValue(1, 3)); 36range.Ranges.Add(new RangeItemHeaderValue(5, null)); 37range.Ranges.Add(new RangeItemHeaderValue(null, 17)); 50range5.Ranges.Add(new RangeItemHeaderValue(1, 2)); 51range5.Ranges.Add(new RangeItemHeaderValue(3, 4)); 53range6.Ranges.Add(new RangeItemHeaderValue(3, 4)); // reverse order of range5 54range6.Ranges.Add(new RangeItemHeaderValue(1, 2)); 72range5.Ranges.Add(new RangeItemHeaderValue(1, 2)); 73range5.Ranges.Add(new RangeItemHeaderValue(3, 4)); 75range6.Ranges.Add(new RangeItemHeaderValue(3, 4)); // reverse order of range5 76range6.Ranges.Add(new RangeItemHeaderValue(1, 2)); 96expected.Ranges.Add(new RangeItemHeaderValue(null, 5)); 97expected.Ranges.Add(new RangeItemHeaderValue(1, 4)); 102expected.Ranges.Add(new RangeItemHeaderValue(1, 2)); 106expected.Ranges.Add(new RangeItemHeaderValue(1, 2)); 107expected.Ranges.Add(new RangeItemHeaderValue(3, null)); 108expected.Ranges.Add(new RangeItemHeaderValue(null, 4)); 135expected.Ranges.Add(new RangeItemHeaderValue(null, 5)); 136expected.Ranges.Add(new RangeItemHeaderValue(1, 4));
RangeItemHeaderValueTest.cs (2)
133var ranges = result.Ranges.ToArray(); 147var ranges = result.Ranges.ToArray();