Skip to content
This repository was archived by the owner on Nov 20, 2018. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ public void GetDisplayUrlFromRequest()
[InlineData("https://127.0.0.0:80/bar", "https", "127.0.0.0:80", "/bar", "", "")]
[InlineData("http://[1080:0:0:0:8:800:200C:417A]/index.html", "http", "[1080:0:0:0:8:800:200C:417A]", "/index.html", "", "")]
[InlineData("http://example.com///", "http", "example.com", "///", "", "")]
[InlineData("http://example.com///", "http", "example.com", "///", "", "")]
public void FromAbsoluteUriParsingChecks(
string uri,
string expectedScheme,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ public static TheoryData UnEscapesKeyValues_Data
// key, value, expected
return new TheoryData<string, string, string>
{
{ "key=value", "key", "value" },
{ "key%2C=%21value", "key,", "!value" },
{ "ke%23y%2C=val%5Eue", "ke#y,", "val^ue" },
{ "key=value", "key", "value" },
{ "key%2C=%21value", "key,", "!value" },
{ "ke%23y%2C=val%5Eue", "ke#y,", "val^ue" },
Expand Down
3 changes: 0 additions & 3 deletions test/Microsoft.AspNetCore.Http.Tests/ResponseCookiesTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,6 @@ public static TheoryData EscapesKeyValuesBeforeSettingCookieData
// key, value, object pool, expected
return new TheoryData<string, string, string>
{
{ "key", "value", "key=value" },
{ "key,", "!value", "key%2C=%21value" },
{ "ke#y,", "val^ue", "ke%23y%2C=val%5Eue" },
{ "key", "value", "key=value" },
{ "key,", "!value", "key%2C=%21value" },
{ "ke#y,", "val^ue", "ke%23y%2C=val%5Eue" },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ public void EncodeInternal_Replaces_UrlEncodableCharacters(string base64EncodedV
[InlineData("a_b_c_d", "a/b/c/d=")]
[InlineData("a-b_c", "a+b/c===")]
[InlineData("a-b_c-d", "a+b/c+d=")]
[InlineData("a-b_c", "a+b/c===")]
[InlineData("abcd", "abcd")]
public void DecodeToBase64String_ReturnsValid_Base64String(string text, string expectedValue)
{
Expand Down
16 changes: 15 additions & 1 deletion test/Microsoft.Net.Http.Headers.Tests/HeaderUtilitiesTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,26 @@ public static TheoryData<DateTimeOffset, bool> TestValues

foreach (var quoted in new[] { true, false })
{
for (var i = 0; i < 60; i++)
data.Add(now, quoted);

for (var i = 1; i < 60; i++)
{
data.Add(now.AddSeconds(i), quoted);
data.Add(now.AddMinutes(i), quoted);
}

for (var i = 1; i < DateTime.DaysInMonth(now.Year, now.Month); i++)
{
data.Add(now.AddDays(i), quoted);
}

for (var i = 1; i < 11; i++)
{
data.Add(now.AddMonths(i), quoted);
}

for (var i = 1; i < 5; i++)
{
data.Add(now.AddYears(i), quoted);
}
}
Expand Down