示例#1
0
        public void CreateComment_NormalCase()
        {
            const string url  = "https://api.vk.com/method/video.createComment?video_id=166613182&owner_id=1&message=забавное видео&from_group=0&v=5.9&access_token=token";
            const string json =
                @"{
                    'response': 35634
                  }";

            VideoCategory cat = GetMockedVideoCategory(url, json);

            long id = cat.CreateComment(166613182, "забавное видео", 1);

            id.ShouldEqual(35634);
        }