예제 #1
0
        public void TestOnlyContainsSingers(string[] existSingers, string[] compareSingers, bool isContain)
        {
            var singers = TestCaseTagHelper.ParseSingers(compareSingers).ToList();
            var lyric   = new Lyric
            {
                Singers = TestCaseTagHelper.ParseSingers(existSingers)?.Select(x => x.ID).ToArray()
            };

            Assert.AreEqual(LyricUtils.OnlyContainsSingers(lyric, singers), isContain);
        }