示例#1
0
        public void GetDownloadDir()
        {
            XiamiFetcher fetch  = new XiamiFetcher();
            var          id     = "mQ7xXi841fa";
            var          result = fetch.getSongInfo(id);

            Assert.AreNotEqual(null, result);
            var id2     = "1770729242";
            var result2 = fetch.getSongInfo(id2);

            Assert.AreNotEqual(null, result2);
        }
示例#2
0
        public void LimitedSong()
        {
            //这个曲目处于被限制的状态,无法获取到其曲目信息
            XiamiFetcher fetch  = new XiamiFetcher();
            var          id     = "8HMzgCf6429";
            var          result = fetch.getSongInfo(id);

            Assert.AreEqual(null, result);
        }