예제 #1
0
        public void UrlTest()
        {
            string[] subStrArr =
            {
                "url", "size", "br"
            };
            bool isPass = TestTool.TargetStrContain(() => Api.FormatMethod(true).Url("35847388"), subStrArr);

            Assert.True(isPass);
        }
예제 #2
0
        public void PicTest()
        {
            string[] subStrArr =
            {
                "url"
            };
            bool isPass = TestTool.TargetStrContain(() => Api.FormatMethod(true).Pic("1407374890649284"), subStrArr);

            Assert.True(isPass);
        }
예제 #3
0
        public void LyricTest()
        {
            string[] subStrArr =
            {
                "lyric", "tlyric"
            };
            bool isPass = TestTool.TargetStrContain(() => Api.FormatMethod(true).Lyric("35847388"), subStrArr);

            Assert.True(isPass);
        }
예제 #4
0
        public void PicTest()
        {
            string[] subStrArr =
            {
                "url"
            };
            bool isPass = TestTool.TargetStrContain(() => Api.FormatMethod(true).Pic("00384f3K3IcUMu"), subStrArr);

            Assert.True(isPass);
        }
예제 #5
0
        public void ArtistTest()
        {
            string[] subStrArr =
            {
                "id",
                "name",
                "artist",
                "album",
                "pic_id",
                "url_id",
                "lyric_id",
                "source",
            };
            bool isPass = TestTool.TargetStrContain(() => Api.FormatMethod(true).Artist("1049179"), subStrArr);

            Assert.True(isPass);
        }
예제 #6
0
        public void SongTest()
        {
            string[] subStrArr =
            {
                "id",
                "name",
                "artist",
                "album",
                "pic_id",
                "url_id",
                "lyric_id",
                "source",
            };
            bool isPass = TestTool.TargetStrContain(() => Api.FormatMethod(true).Song("001Nal2N2f0Qr8"), subStrArr);

            Assert.True(isPass);
        }