public void GetMyVideoPageTest() { string id = TestUtility.TestData[TestUtility.KEY_VIDEO_ID]; TestUtility.EnsureLogin(network_); string html = network_.GetMyVideoPage(); Assert.That(html, Text.Contains(id), "GetMyVideoPageTest1"); }
public void ParseMyVideoHtmlTest() { string id = TestUtility.TestData[TestUtility.KEY_VIDEO_ID]; TestUtility.EnsureLogin(network_); string html = network_.GetMyVideoPage(); Assert.That(html, Text.Contains(id), "ParseMyVideoHtmlTest1"); List<Video> videos = NicoListManager.ParseMyVideoHtml(html); Assert.That(videos.Exists(delegate(Video video) { return string.Equals(video.video_id, id, StringComparison.Ordinal); }), Is.True, "ParseMyVideoHtmlTest2"); }