Ejemplo n.º 1
0
        public void OmdbMovieInfoNotFoundExceptionTest()
        {
            OmdbService Service = OmdbService.Service;

            title = "thisIsNotAnameOfAmovie";
            Service.GetMovieInfo(title);
        }
Ejemplo n.º 2
0
        public void OmdbGetMovieInfoTest()
        {
            OmdbService Service = OmdbService.Service;

            title = "The matrix";
            MovieInfo Expected = new MovieInfo();

            Expected.Title    = "The Matrix";
            Expected.Year     = "1999";
            Expected.Rated    = "R";
            Expected.Released = "31 Mar 1999";
            Expected.RunTime  = "136 min";
            Expected.Genre    = "Action, Sci-Fi";
            Expected.Director = "Andy Wachowski, Lana Wachowski";
            Expected.Writer   = "Andy Wachowski, Lana Wachowski";
            Expected.Actors   = "Keanu Reeves, Laurence Fishburne, Carrie-Anne Moss, Hugo Weaving";
            Expected.Plot     = "A computer hacker learns from mysterious rebels about the true nature of his reality and his role in the war against its controllers.";
            Expected.Language = "English";
            Expected.Country  = "USA, Australia";
            Expected.Awards   = "Won 4 Oscars. Another 33 wins & 40 nominations.";
            Expected.Rating   = "8.7";
            MovieInfo Actual = Service.GetMovieInfo(title);

            Assert.AreEqual(Expected, Actual);
        }