aboutsummaryrefslogtreecommitdiff
path: root/tests/Jellyfin.Naming.Tests/TV/SeriesPathParserTest.cs
diff options
context:
space:
mode:
authorBond_009 <bond.009@outlook.com>2022-01-04 17:59:30 +0100
committerBond_009 <bond.009@outlook.com>2022-01-04 17:59:30 +0100
commit71ebe220f0904548206f23ec8c83400cb20b9519 (patch)
treef4a45860cb911a9ba15d053eda12fc4e51ca05dc /tests/Jellyfin.Naming.Tests/TV/SeriesPathParserTest.cs
parentc6a1dcf420dfbb4bef80b1267fe26035e67f9a6d (diff)
Speed up Jellyfin.Naming.Tests
In my limited testing this saves ~4 seconds, from 19 to 15 seconds (in Xunit itself)
Diffstat (limited to 'tests/Jellyfin.Naming.Tests/TV/SeriesPathParserTest.cs')
-rw-r--r--tests/Jellyfin.Naming.Tests/TV/SeriesPathParserTest.cs5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/Jellyfin.Naming.Tests/TV/SeriesPathParserTest.cs b/tests/Jellyfin.Naming.Tests/TV/SeriesPathParserTest.cs
index ceb5f8b73..e6b0409db 100644
--- a/tests/Jellyfin.Naming.Tests/TV/SeriesPathParserTest.cs
+++ b/tests/Jellyfin.Naming.Tests/TV/SeriesPathParserTest.cs
@@ -6,6 +6,8 @@ namespace Jellyfin.Naming.Tests.TV
{
public class SeriesPathParserTest
{
+ private readonly NamingOptions _namingOptions = new NamingOptions();
+
[Theory]
[InlineData("The.Show.S01", "The.Show")]
[InlineData("/The.Show.S01", "The.Show")]
@@ -18,8 +20,7 @@ namespace Jellyfin.Naming.Tests.TV
[InlineData("/something/The Show/S01", "The Show")]
public void SeriesPathParserParseTest(string path, string name)
{
- NamingOptions o = new NamingOptions();
- var res = SeriesPathParser.Parse(o, path);
+ var res = SeriesPathParser.Parse(_namingOptions, path);
Assert.Equal(name, res.SeriesName);
Assert.True(res.Success);