|
|
@ -31,16 +31,6 @@ namespace NzbDrone.Core.Test.Extras.Metadata.Consumers.Wdtv
|
|
|
|
Subject.FindMetadataFile(_artist, path).Should().BeNull();
|
|
|
|
Subject.FindMetadataFile(_artist, path).Should().BeNull();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[TestCase("Specials")]
|
|
|
|
|
|
|
|
[TestCase("specials")]
|
|
|
|
|
|
|
|
[TestCase("Season 1")]
|
|
|
|
|
|
|
|
public void should_return_album_image(string folder)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
var path = Path.Combine(_artist.Path, folder, "folder.jpg");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Subject.FindMetadataFile(_artist, path).Type.Should().Be(MetadataType.AlbumImage);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[TestCase(".xml", MetadataType.TrackMetadata)]
|
|
|
|
[TestCase(".xml", MetadataType.TrackMetadata)]
|
|
|
|
public void should_return_metadata_for_track_if_valid_file_for_track(string extension, MetadataType type)
|
|
|
|
public void should_return_metadata_for_track_if_valid_file_for_track(string extension, MetadataType type)
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -57,13 +47,5 @@ namespace NzbDrone.Core.Test.Extras.Metadata.Consumers.Wdtv
|
|
|
|
|
|
|
|
|
|
|
|
Subject.FindMetadataFile(_artist, path).Should().BeNull();
|
|
|
|
Subject.FindMetadataFile(_artist, path).Should().BeNull();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[Test]
|
|
|
|
|
|
|
|
public void should_return_artist_image_for_folder_jpg_in_artist_folder()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
var path = Path.Combine(_artist.Path, "folder.jpg");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Subject.FindMetadataFile(_artist, path).Type.Should().Be(MetadataType.ArtistImage);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|