mirror of https://github.com/jellyfin/jellyfin.git
Revert "Use TheoryData in UrlDecodeQueryFeatureTest"
This reverts commit c5393b2579
.
This commit is contained in:
parent
c5393b2579
commit
3313efce19
|
@ -10,18 +10,11 @@ namespace Jellyfin.Server.Tests
|
|||
{
|
||||
public static class UrlDecodeQueryFeatureTests
|
||||
{
|
||||
public static TheoryData<string, string> EmptyValueTest_TestData()
|
||||
{
|
||||
var data = new TheoryData<string, string>();
|
||||
data.Add("e0a72cb2a2c7", "e0a72cb2a2c7"); // isn't encoded
|
||||
data.Add("random+test", "random test"); // encoded
|
||||
data.Add("random%20test", "random test"); // encoded
|
||||
data.Add("++", " "); // encoded
|
||||
return data;
|
||||
}
|
||||
|
||||
[Theory]
|
||||
[MemberData(nameof(EmptyValueTest_TestData))]
|
||||
[InlineData("e0a72cb2a2c7", "e0a72cb2a2c7")] // isn't encoded
|
||||
[InlineData("random+test", "random test")] // encoded
|
||||
[InlineData("random%20test", "random test")] // encoded
|
||||
[InlineData("++", " ")] // encoded
|
||||
public static void EmptyValueTest(string query, string key)
|
||||
{
|
||||
var dict = new Dictionary<string, StringValues>
|
||||
|
|
Loading…
Reference in New Issue