public void CreateFromPageTest() { var data = GetEmailPassword(".niconico.txt"); var cc = Login.Loginer.LoginDirect(data[0], data[1]); Assert.IsNotNull(cc); TestSM9(VideoData.CreateFromPage("sm9", cc), RemoveTagType.None); Console.WriteLine("Waiting ..."); Thread.Sleep(5000); TestSM941537(VideoData.CreateFromPage("sm941537", cc), RemoveTagType.None); Console.WriteLine("Waiting ..."); Thread.Sleep(5000); TestSM500873(VideoData.CreateFromPage("sm500873", cc), RemoveTagType.None); Console.WriteLine("Waiting ..."); Thread.Sleep(5000); TestSM1949063(VideoData.CreateFromPage("sm1949063", cc), RemoveTagType.None); Console.WriteLine("Waiting ..."); Thread.Sleep(5000); Test1441099865(VideoData.CreateFromPage( "http://www.nicovideo.jp/watch/1441099865?eco=1", cc), RemoveTagType.None); Console.WriteLine("Waiting ..."); Thread.Sleep(5000); TestMemberOnly(VideoData.CreateFromPage("1400284158", cc), RemoveTagType.None); Console.WriteLine("Waiting ..."); Thread.Sleep(5000); TestHidden(VideoData.CreateFromPage("1441274407", cc), RemoveTagType.None); Console.WriteLine("Waiting ..."); Thread.Sleep(5000); Assert.Catch(() => VideoData.CreateFromPage("sm44422222222222222", cc)); Console.WriteLine("Waiting ..."); Thread.Sleep(5000); Assert.Catch(() => VideoData.CreateFromPage("134444444444444444", cc)); }