From 6e1ed10a065ee5c4ee6a9078d8fea1e71fddc6d3 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Thu, 5 Sep 2013 08:48:14 -0400 Subject: [PATCH] add extra multi-episode unit test --- MediaBrowser.Model/Querying/ItemSortBy.cs | 2 ++ MediaBrowser.Tests/Resolvers/TvUtilTests.cs | 2 ++ 2 files changed, 4 insertions(+) diff --git a/MediaBrowser.Model/Querying/ItemSortBy.cs b/MediaBrowser.Model/Querying/ItemSortBy.cs index 43322c6a3..edf94197d 100644 --- a/MediaBrowser.Model/Querying/ItemSortBy.cs +++ b/MediaBrowser.Model/Querying/ItemSortBy.cs @@ -71,5 +71,7 @@ namespace MediaBrowser.Model.Querying /// public const string CriticRating = "CriticRating"; public const string IsFolder = "IsFolder"; + public const string IsUnplayed = "IsUnplayed"; + public const string IsPlayed = "IsPlayed"; } } diff --git a/MediaBrowser.Tests/Resolvers/TvUtilTests.cs b/MediaBrowser.Tests/Resolvers/TvUtilTests.cs index fc809306a..1aaff6384 100644 --- a/MediaBrowser.Tests/Resolvers/TvUtilTests.cs +++ b/MediaBrowser.Tests/Resolvers/TvUtilTests.cs @@ -56,6 +56,8 @@ namespace MediaBrowser.Tests.Resolvers [TestMethod] 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\S01x02 blah.avi")); Assert.AreEqual(null, TVUtils.GetEndingEpisodeNumberFromFile(@"Season 1\S01E02 blah.avi"));