Files
pgsql-jellyfin/tests/Jellyfin.Naming.Tests/Music/MultiDiscAlbumTests.cs
T
wjones af1152b001 Refactor: standardize namespace and using directive style
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.
2026-02-20 16:26:53 -05:00

55 lines
2.1 KiB
C#

// <copyright file="MultiDiscAlbumTests.cs" company="PlaceholderCompany">
// Copyright (c) PlaceholderCompany. All rights reserved.
// </copyright>
namespace Jellyfin.Naming.Tests.Music
{
using Emby.Naming.Audio;
using Emby.Naming.Common;
using Xunit;
public class MultiDiscAlbumTests
{
private readonly NamingOptions _namingOptions = new NamingOptions();
[Theory]
[InlineData("", false)]
[InlineData("C:/", false)]
[InlineData("/home/", false)]
[InlineData("blah blah", false)]
[InlineData("D:/music/weezer/03 Pinkerton", false)]
[InlineData("D:/music/michael jackson/Bad (2012 Remaster)", false)]
[InlineData("cd1", true)]
[InlineData("disc18", true)]
[InlineData("disk10", true)]
[InlineData("vol7", true)]
[InlineData("volume1", true)]
[InlineData("cd 1", true)]
[InlineData("disc 1", true)]
[InlineData("disk 1", true)]
[InlineData("disk", false)]
[InlineData("disk ·", false)]
[InlineData("disk a", false)]
[InlineData("disk volume", false)]
[InlineData("disc disc", false)]
[InlineData("disk disc 6", false)]
[InlineData("cd - 1", true)]
[InlineData("disc- 1", true)]
[InlineData("disk - 1", true)]
[InlineData("Disc 01 (Hugo Wolf · 24 Lieder)", true)]
[InlineData("Disc 04 (Encores and Folk Songs)", true)]
[InlineData("Disc04 (Encores and Folk Songs)", true)]
[InlineData("Disc 04(Encores and Folk Songs)", true)]
[InlineData("Disc04(Encores and Folk Songs)", true)]
[InlineData("D:/Video/MBTestLibrary/VideoTest/music/.38 special/anth/Disc 2", true)]
[InlineData("[1985] Opportunities (Let's make lots of money) (1985)", false)]
[InlineData("Blah 04(Encores and Folk Songs)", false)]
public void AlbumParser_MultidiscPath_Identifies(string path, bool result)
{
var parser = new AlbumParser(_namingOptions);
Assert.Equal(result, parser.IsMultiPart(path));
}
}
}