13 writes to Unit
Microsoft.Net.Http.Headers.Tests (13)
RangeHeaderValueTest.cs (13)
18
range.
Unit
= "myunit";
21
Assert.Throws<ArgumentException>(() => range.
Unit
= null);
22
Assert.Throws<ArgumentException>(() => range.
Unit
= "");
23
Assert.Throws<FormatException>(() => range.
Unit
= " x");
24
Assert.Throws<FormatException>(() => range.
Unit
= "x ");
25
Assert.Throws<FormatException>(() => range.
Unit
= "x y");
32
range.
Unit
= "myunit";
46
range2.
Unit
= "BYTES";
68
range2.
Unit
= "BYTES";
78
range7.
Unit
= "other";
95
expected.
Unit
= "custom";
101
expected.
Unit
= "custom";
134
expected.
Unit
= "custom";
2 references to Unit
Microsoft.AspNetCore.HeaderParsing.Tests (1)
ParserTests.cs (1)
303
Assert.Equal("bytes", result!.
Unit
);
Microsoft.Net.Http.Headers.Tests (1)
RangeHeaderValueTest.cs (1)
19
Assert.Equal("myunit", range.
Unit
.AsSpan());