mirror of
https://github.com/Sonarr/Sonarr.git
synced 2026-04-20 21:54:58 -04:00
9e3b8230bc
Closes #7994
20 lines
585 B
C#
20 lines
585 B
C#
using FluentAssertions;
|
|
using NUnit.Framework;
|
|
using NzbDrone.Core.Test.Framework;
|
|
|
|
namespace NzbDrone.Core.Test.ParserTests
|
|
{
|
|
[TestFixture]
|
|
public class SubGroupParserFixture : CoreTest
|
|
{
|
|
[TestCase("[GHOST][1080p] Series - 25 [BD HEVC 10bit Dual Audio AC3][AE0ADDBA]", "GHOST")]
|
|
public void should_parse_sub_group_from_title_as_release_group(string title, string expected)
|
|
{
|
|
var result = Parser.Parser.ParseTitle(title);
|
|
|
|
result.Should().NotBeNull();
|
|
result.ReleaseGroup.Should().Be(expected);
|
|
}
|
|
}
|
|
}
|