Exemplo n.º 1
0
        public void SearchSeries_GameOfThrones_WillReturn_1Item()
        {
            //arrange
            var tvdb = new TVDBNet(YourTheTVDBAPIKey);

            //act
            var results = tvdb.GetSeries("Game of Thrones").ToList();

            //Assert
            Assert.True(results.Any());
            Assert.True(results.Count == 1, "Expected 1 but {0}", results.Count);
        }
Exemplo n.º 2
0
        public void GetMirrors_Tests()
        {
            //arrange
            var tvdb = new TVDBNet(YourTheTVDBAPIKey);

            //act
            

            //Assert
            Assert.True(tvdb.Mirrors.Any());
     
           
        }
Exemplo n.º 3
0
        public void SearchSeries_PawnStars()
        {
            //arrange
            var tvdb = new TVDBNet(YourTheTVDBAPIKey);

            //act
            var results = tvdb.GetSeries("Pawn Stars").ToList();

            //Assert
            Assert.True(results.Any());
            results.ForEach(r=> Debug.WriteLine(r.SeriesName));
            //Assert.True(results.Count == 1, "Expected 1 but {0}", results.Count);
        }
Exemplo n.º 4
0
        public void GetServerTime_Tests()
        {
            //arrange
            var tvdb = new TVDBNet(YourTheTVDBAPIKey);

            //act
         

            //Assert
            Assert.True(tvdb.ServerTime != default(DateTime));


        }
Exemplo n.º 5
0
 public void Constructor_EmtptyNullApiKey_ThrowsException()
 {
     //arrange
     //act
     var tvdb = new TVDBNet("");
 }