public void CreateFromApiTest() { TestSM9(VideoData.CreateFromApi("sm9"), RemoveTagType.All); TestSM941537(VideoData.CreateFromApi("sm941537"), RemoveTagType.All); TestSM500873(VideoData.CreateFromApi("sm500873"), RemoveTagType.All); TestSM1949063(VideoData.CreateFromApi("sm1949063"), RemoveTagType.All); Test1441099865(VideoData.CreateFromApi( "http://www.nicovideo.jp/watch/1441099865?eco=1"), RemoveTagType.All); TestMemberOnly(VideoData.CreateFromApi("1400284158"), RemoveTagType.All); // 非表示の動画は取れない Assert.Catch(() => VideoData.CreateFromApi("1441274407")); Assert.Catch(() => VideoData.CreateFromApi("sm44422222222222222")); Assert.Catch(() => VideoData.CreateFromApi("134444444444444444")); }