public void should_add_collection_movie_if_null_mediainfo() { Subject.AddMovieToCollection(_traktSettings, _downloadMessage.Movie, _downloadMessage.MovieFile); Mocker.GetMock <ITraktProxy>() .Verify(v => v.AddToCollection(It.IsAny <TraktCollectMoviesResource>(), It.IsAny <string>()), Times.Once()); }
public void should_format_audio_channels_to_one_decimal_when_adding_collection_movie() { GiventValidMediaInfo(Quality.Bluray1080p, "2/0/0", "DTS", "Interlaced"); Subject.AddMovieToCollection(_traktSettings, _downloadMessage.Movie, _downloadMessage.MovieFile); Mocker.GetMock <ITraktProxy>() .Verify(v => v.AddToCollection(It.Is <TraktCollectMoviesResource>(t => t.Movies.First().Audio == "dts" && t.Movies.First().AudioChannels == "2.0" && t.Movies.First().Resolution == "hd_1080i" && t.Movies.First().MediaType == "bluray"), It.IsAny <string>()), Times.Once()); }
public void should_add_collection_movie_if_valid_mediainfo() { GiventValidMediaInfo(Quality.Bluray1080p, "3/2/0.1", "DTS", "Interlaced"); Subject.AddMovieToCollection(_traktSettings, _downloadMessage.Movie, _downloadMessage.MovieFile); Mocker.GetMock <ITraktProxy>() .Verify(v => v.AddToCollection(It.Is <TraktCollectMoviesResource>(t => t.Movies.First().Audio == "dts" && t.Movies.First().AudioChannels == "5.1" && t.Movies.First().Resolution == "hd_1080i" && t.Movies.First().MediaType == "bluray"), It.IsAny <string>()), Times.Once()); }