private void TestBreakingBadSeasonOneEpisodeOneBaseProperties(TvEpisode tvEpisode) { Assert.AreEqual(62085, tvEpisode.Id); Assert.AreEqual("2008-01-20", tvEpisode.AirDate.ToString("yyyy-MM-dd")); Assert.AreEqual(1, tvEpisode.EpisodeNumber); Assert.AreEqual("Pilot", tvEpisode.Name); Assert.IsNotNull(tvEpisode.Overview); Assert.IsNull(tvEpisode.ProductionCode); Assert.AreEqual(1, tvEpisode.SeasonNumber); Assert.IsNotNull(tvEpisode.StillPath); }
private void TestBreakingBadSeasonOneEpisodeOneBaseProperties(TvEpisode tvEpisode) { Assert.AreEqual(62085, tvEpisode.Id); Assert.AreEqual(new DateTime(2008, 1, 19), tvEpisode.AirDate.Date); Assert.AreEqual(1, tvEpisode.EpisodeNumber); Assert.AreEqual("Pilot", tvEpisode.Name); Assert.IsNotNull(tvEpisode.Overview); Assert.IsNull(tvEpisode.ProductionCode); Assert.AreEqual(1, tvEpisode.SeasonNumber); Assert.IsNotNull(tvEpisode.StillPath); Assert.IsNotNull(tvEpisode.Crew); Crew crew = tvEpisode.Crew.SingleOrDefault(s => s.CreditId == "52542275760ee313280006ce"); Assert.IsNotNull(crew); Assert.AreEqual(66633, crew.Id); Assert.AreEqual("52542275760ee313280006ce", crew.CreditId); Assert.AreEqual("Vince Gilligan", crew.Name); Assert.AreEqual("Writing", crew.Department); Assert.AreEqual("Writer", crew.Job); Assert.AreEqual("/rLSUjr725ez1cK7SKVxC9udO03Y.jpg", crew.ProfilePath); Assert.IsNotNull(tvEpisode.GuestStars); Cast star = tvEpisode.GuestStars.SingleOrDefault(s => s.CreditId == "52542273760ee3132800068e"); Assert.IsNotNull(star); Assert.AreEqual(92495, star.Id); Assert.AreEqual("John Koyama", star.Name); Assert.AreEqual("52542273760ee3132800068e", star.CreditId); Assert.AreEqual("Emilio Koyama", star.Character); Assert.AreEqual(1, star.Order); Assert.AreEqual("/uh4g85qbQGZZ0HH6IQI9fM9VUGS.jpg", star.ProfilePath); }
private void TestBreakingBadSeasonOneEpisodeOneBaseProperties(TvEpisode tvEpisode) { Assert.AreEqual(62085, tvEpisode.Id); Assert.AreEqual(new DateTime(2008, 1, 19), tvEpisode.AirDate.Date); Assert.AreEqual(1, tvEpisode.EpisodeNumber); Assert.AreEqual("Pilot", tvEpisode.Name); Assert.IsNotNull(tvEpisode.Overview); Assert.IsNull(tvEpisode.ProductionCode); Assert.AreEqual(1, tvEpisode.SeasonNumber); Assert.IsNotNull(tvEpisode.StillPath); Assert.IsNotNull(tvEpisode.Crew); Crew crew = tvEpisode.Crew.SingleOrDefault(s => s.CreditId == "52542275760ee313280006ce"); Assert.IsNotNull(crew); Assert.AreEqual(66633, crew.Id); Assert.AreEqual("52542275760ee313280006ce", crew.CreditId); Assert.AreEqual("Vince Gilligan", crew.Name); Assert.AreEqual("Writing", crew.Department); Assert.AreEqual("Writer", crew.Job); Assert.IsTrue(TestImagesHelpers.TestImagePath(crew.ProfilePath), "crew.ProfilePath was not a valid image path, was: " + crew.ProfilePath); Assert.IsNotNull(tvEpisode.GuestStars); Cast star = tvEpisode.GuestStars.SingleOrDefault(s => s.CreditId == "52542273760ee3132800068e"); Assert.IsNotNull(star); Assert.AreEqual(92495, star.Id); Assert.AreEqual("John Koyama", star.Name); Assert.AreEqual("52542273760ee3132800068e", star.CreditId); Assert.AreEqual("Emilio Koyama", star.Character); Assert.AreEqual(1, star.Order); Assert.IsTrue(TestImagesHelpers.TestImagePath(star.ProfilePath), "star.ProfilePath was not a valid image path, was: " + star.ProfilePath); }