mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-10-02 00:34:37 +02:00
AsOsAgnostic?
This commit is contained in:
@@ -32,7 +32,7 @@ namespace NzbDrone.Core.Test.ParserTests
|
|||||||
[TestCase(@"C:\Test\Series\Season 1\2 Honor Thy Father (1080p HD).m4v", 1, 2)]
|
[TestCase(@"C:\Test\Series\Season 1\2 Honor Thy Father (1080p HD).m4v", 1, 2)]
|
||||||
public void should_parse_from_path(string path, int season, int episode)
|
public void should_parse_from_path(string path, int season, int episode)
|
||||||
{
|
{
|
||||||
var result = Parser.Parser.ParsePath(path);
|
var result = Parser.Parser.ParsePath(path.AsOsAgnostic());
|
||||||
result.EpisodeNumbers.Should().HaveCount(1);
|
result.EpisodeNumbers.Should().HaveCount(1);
|
||||||
result.SeasonNumber.Should().Be(season);
|
result.SeasonNumber.Should().Be(season);
|
||||||
result.EpisodeNumbers[0].Should().Be(episode);
|
result.EpisodeNumbers[0].Should().Be(episode);
|
||||||
|
Reference in New Issue
Block a user