af1152b001
Refactored all C# test files to use explicit namespace declarations and moved all using directives inside the namespace block for consistency. Updated assembly info and cache files to reflect the new build. Adjusted MvcTestingAppManifest.json to use fully qualified assembly names. No functional changes; all updates are related to code style, organization, and project metadata.
34 lines
1.1 KiB
C#
34 lines
1.1 KiB
C#
// <copyright file="SeriesPathParserTest.cs" company="PlaceholderCompany">
|
|
// Copyright (c) PlaceholderCompany. All rights reserved.
|
|
// </copyright>
|
|
|
|
namespace Jellyfin.Naming.Tests.TV
|
|
{
|
|
using Emby.Naming.Common;
|
|
using Emby.Naming.TV;
|
|
using Xunit;
|
|
|
|
public class SeriesPathParserTest
|
|
{
|
|
private readonly NamingOptions _namingOptions = new NamingOptions();
|
|
|
|
[Theory]
|
|
[InlineData("The.Show.S01", "The.Show")]
|
|
[InlineData("/The.Show.S01", "The.Show")]
|
|
[InlineData("/some/place/The.Show.S01", "The.Show")]
|
|
[InlineData("/something/The.Show.S01", "The.Show")]
|
|
[InlineData("The Show Season 10", "The Show")]
|
|
[InlineData("The Show S01E01", "The Show")]
|
|
[InlineData("The Show S01E01 Episode", "The Show")]
|
|
[InlineData("/something/The Show/Season 1", "The Show")]
|
|
[InlineData("/something/The Show/S01", "The Show")]
|
|
public void SeriesPathParserParseTest(string path, string name)
|
|
{
|
|
var res = SeriesPathParser.Parse(_namingOptions, path);
|
|
|
|
Assert.Equal(name, res.SeriesName);
|
|
Assert.True(res.Success);
|
|
}
|
|
}
|
|
}
|