Skip to content
This repository was archived by the owner on Nov 20, 2018. It is now read-only.

Commit 8d4e04c

Browse files
author
Cesar Blum Silveira
authored
Fix duplicate test warnings.
1 parent ca5108a commit 8d4e04c

File tree

5 files changed

+15
-9
lines changed

5 files changed

+15
-9
lines changed

test/Microsoft.AspNetCore.Http.Extensions.Tests/UriHelperTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ public void GetDisplayUrlFromRequest()
8383
[InlineData("https://127.0.0.0:80/bar", "https", "127.0.0.0:80", "/bar", "", "")]
8484
[InlineData("http://[1080:0:0:0:8:800:200C:417A]/index.html", "http", "[1080:0:0:0:8:800:200C:417A]", "/index.html", "", "")]
8585
[InlineData("http://example.com///", "http", "example.com", "///", "", "")]
86-
[InlineData("http://example.com///", "http", "example.com", "///", "", "")]
8786
public void FromAbsoluteUriParsingChecks(
8887
string uri,
8988
string expectedScheme,

test/Microsoft.AspNetCore.Http.Tests/RequestCookiesCollectionTests.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@ public static TheoryData UnEscapesKeyValues_Data
1717
// key, value, expected
1818
return new TheoryData<string, string, string>
1919
{
20-
{ "key=value", "key", "value" },
21-
{ "key%2C=%21value", "key,", "!value" },
22-
{ "ke%23y%2C=val%5Eue", "ke#y,", "val^ue" },
2320
{ "key=value", "key", "value" },
2421
{ "key%2C=%21value", "key,", "!value" },
2522
{ "ke%23y%2C=val%5Eue", "ke#y,", "val^ue" },

test/Microsoft.AspNetCore.Http.Tests/ResponseCookiesTest.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,6 @@ public static TheoryData EscapesKeyValuesBeforeSettingCookieData
5151
// key, value, object pool, expected
5252
return new TheoryData<string, string, string>
5353
{
54-
{ "key", "value", "key=value" },
55-
{ "key,", "!value", "key%2C=%21value" },
56-
{ "ke#y,", "val^ue", "ke%23y%2C=val%5Eue" },
5754
{ "key", "value", "key=value" },
5855
{ "key,", "!value", "key%2C=%21value" },
5956
{ "ke#y,", "val^ue", "ke%23y%2C=val%5Eue" },

test/Microsoft.AspNetCore.WebUtilities.Tests/Base64UrlTextEncoderTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ public void EncodeInternal_Replaces_UrlEncodableCharacters(string base64EncodedV
5555
[InlineData("a_b_c_d", "a/b/c/d=")]
5656
[InlineData("a-b_c", "a+b/c===")]
5757
[InlineData("a-b_c-d", "a+b/c+d=")]
58-
[InlineData("a-b_c", "a+b/c===")]
5958
[InlineData("abcd", "abcd")]
6059
public void DecodeToBase64String_ReturnsValid_Base64String(string text, string expectedValue)
6160
{

test/Microsoft.Net.Http.Headers.Tests/HeaderUtilitiesTest.cs

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,26 @@ public static TheoryData<DateTimeOffset, bool> TestValues
3333

3434
foreach (var quoted in new[] { true, false })
3535
{
36-
for (var i = 0; i < 60; i++)
36+
data.Add(now, quoted);
37+
38+
for (var i = 1; i < 60; i++)
3739
{
3840
data.Add(now.AddSeconds(i), quoted);
3941
data.Add(now.AddMinutes(i), quoted);
42+
}
43+
44+
for (var i = 1; i < DateTime.DaysInMonth(now.Year, now.Month); i++)
45+
{
4046
data.Add(now.AddDays(i), quoted);
47+
}
48+
49+
for (var i = 1; i < 11; i++)
50+
{
4151
data.Add(now.AddMonths(i), quoted);
52+
}
53+
54+
for (var i = 1; i < 5; i++)
55+
{
4256
data.Add(now.AddYears(i), quoted);
4357
}
4458
}

0 commit comments

Comments
 (0)