From b8827096b9725fce7f42845e0270da44d839058a Mon Sep 17 00:00:00 2001 From: "kay.one" Date: Mon, 16 Sep 2013 22:16:49 -0700 Subject: [PATCH] left over test. --- .../MediaFiles/MediaFileRepositoryFixture.cs | 32 ------------------- 1 file changed, 32 deletions(-) diff --git a/NzbDrone.Core.Test/MediaFiles/MediaFileRepositoryFixture.cs b/NzbDrone.Core.Test/MediaFiles/MediaFileRepositoryFixture.cs index 2b54fff52..53d26122d 100644 --- a/NzbDrone.Core.Test/MediaFiles/MediaFileRepositoryFixture.cs +++ b/NzbDrone.Core.Test/MediaFiles/MediaFileRepositoryFixture.cs @@ -33,37 +33,5 @@ namespace NzbDrone.Core.Test.MediaFiles seriesFiles.Should().OnlyContain(c => c.SeriesId == 12); } - - - [Test] - public void GetFileByPath_should_return_null_if_file_does_not_exist_in_database() - { - Subject.GetFileByPath(@"C:\Test\EpisodeFile.avi").Should().BeNull(); - } - - [Test] - public void exists_should_return_false_if_file_doesnt_exist() - { - Subject.Exists(@"C:\Test\EpisodeFile.avi").Should().BeFalse(); - } - - [Test] - public void GetFileByPath_should_return_EpisodeFile_if_file_exists_in_database() - { - var path = @"C:\Test\EpisodeFile.avi".AsOsAgnostic(); - - var episodeFile = Builder.CreateNew() - .With(f => f.Id = 0) - .With(f => f.Path = path.CleanFilePath()) - .Build(); - - Subject.Insert(episodeFile); - - var file = Subject.GetFileByPath(path); - - //Resolve - file.Should().NotBeNull(); - file.Path.Should().Be(path.CleanFilePath()); - } } } \ No newline at end of file