Browse Source

Fixup tests

pull/239/head
Michael Bisbjerg 10 years ago
parent
commit
dd99c1eda3
  1. 5
      TMDbLibTests/ClientPersonTests.cs
  2. 2
      TMDbLibTests/ClientSearchTests.cs

5
TMDbLibTests/ClientPersonTests.cs

@ -89,8 +89,9 @@ namespace TMDbLibTests
Assert.IsTrue(TestImagesHelpers.TestImagePath(item.ProfilePath), "item.ProfilePath was not a valid image path, was: " + item.ProfilePath);
Assert.IsNotNull(item.AlsoKnownAs);
Assert.AreEqual(1, item.AlsoKnownAs.Count);
Assert.AreEqual(2, item.AlsoKnownAs.Count);
Assert.IsTrue(item.AlsoKnownAs.Contains("Брюс Уиллис"));
Assert.IsTrue(item.AlsoKnownAs.Contains("브루스 윌리스"));
}
[TestMethod]
@ -157,7 +158,7 @@ namespace TMDbLibTests
Assert.AreEqual("Production", job.Department);
Assert.AreEqual(1571, job.Id);
Assert.AreEqual("Producer", job.Job);
Assert.AreEqual(new DateTime(2007, 6, 21), job.ReleaseDate);
Assert.AreEqual(new DateTime(2007, 6, 20), job.ReleaseDate);
Assert.IsTrue(TestImagesHelpers.TestImagePath(job.PosterPath), "job.PosterPath was not a valid image path, was: " + job.PosterPath);
Assert.AreEqual("Live Free or Die Hard", job.Title);
Assert.AreEqual("Live Free or Die Hard", job.OriginalTitle);

2
TMDbLibTests/ClientSearchTests.cs

@ -42,7 +42,7 @@ namespace TMDbLibTests
Assert.AreEqual("When Strangways, the British SIS Station Chief in Jamaica goes missing, MI6 send James Bond - Agent 007 to investigate. His investigation leads him to the mysterious Crab Key; the secret base of Dr No who he suspects is trying to sabotage the American space program using a radio beam. With the assistance of local fisherman Quarrel, who had been helping Strangways, Bond sneaks onto Crab Key where he meets the beautiful Honey Ryder. Can the three of them defeat an army of henchmen and a \"fire breathing dragon\" in order to stop Dr No, save the space program and get revenge for Strangways? Dr. No is the first film of legendary James Bond series starring Sean Connery in the role of Fleming's British super agent.", item.Overview);
Assert.AreEqual(false, item.Video);
Assert.IsTrue(TestImagesHelpers.TestImagePath(item.PosterPath), "item.PosterPath was not a valid image path, was: " + item.PosterPath);
Assert.AreEqual(new DateTime(1962, 10, 5), item.ReleaseDate);
Assert.AreEqual(new DateTime(1962, 10, 4), item.ReleaseDate);
Assert.AreEqual("Dr. No", item.Title);
Assert.IsTrue(item.Popularity > 0);
Assert.IsTrue(item.VoteAverage > 0);

Loading…
Cancel
Save