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); }
public void GetMirrors_Tests() { //arrange var tvdb = new TVDBNet(YourTheTVDBAPIKey); //act //Assert Assert.True(tvdb.Mirrors.Any()); }
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); }
public void GetServerTime_Tests() { //arrange var tvdb = new TVDBNet(YourTheTVDBAPIKey); //act //Assert Assert.True(tvdb.ServerTime != default(DateTime)); }
public void Constructor_EmtptyNullApiKey_ThrowsException() { //arrange //act var tvdb = new TVDBNet(""); }