add extra multi-episode unit test
This commit is contained in:
parent
c1870f9fc8
commit
6e1ed10a06
|
@ -71,5 +71,7 @@ namespace MediaBrowser.Model.Querying
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public const string CriticRating = "CriticRating";
|
public const string CriticRating = "CriticRating";
|
||||||
public const string IsFolder = "IsFolder";
|
public const string IsFolder = "IsFolder";
|
||||||
|
public const string IsUnplayed = "IsUnplayed";
|
||||||
|
public const string IsPlayed = "IsPlayed";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -56,6 +56,8 @@ namespace MediaBrowser.Tests.Resolvers
|
||||||
[TestMethod]
|
[TestMethod]
|
||||||
public void TestGetEndingEpisodeNumberFromFile()
|
public void TestGetEndingEpisodeNumberFromFile()
|
||||||
{
|
{
|
||||||
|
Assert.AreEqual(null, TVUtils.GetEndingEpisodeNumberFromFile(@"Season 1\4x01 – 20 Hours in America (1).mkv"));
|
||||||
|
|
||||||
Assert.AreEqual(null, TVUtils.GetEndingEpisodeNumberFromFile(@"Season 1\01x02 blah.avi"));
|
Assert.AreEqual(null, TVUtils.GetEndingEpisodeNumberFromFile(@"Season 1\01x02 blah.avi"));
|
||||||
Assert.AreEqual(null, TVUtils.GetEndingEpisodeNumberFromFile(@"Season 1\S01x02 blah.avi"));
|
Assert.AreEqual(null, TVUtils.GetEndingEpisodeNumberFromFile(@"Season 1\S01x02 blah.avi"));
|
||||||
Assert.AreEqual(null, TVUtils.GetEndingEpisodeNumberFromFile(@"Season 1\S01E02 blah.avi"));
|
Assert.AreEqual(null, TVUtils.GetEndingEpisodeNumberFromFile(@"Season 1\S01E02 blah.avi"));
|
||||||
|
|
Loading…
Reference in New Issue
Block a user