Beispiel #1
0
 /// <summary>
 /// Ctor for <see cref="KaraokeSkinConfiguration.LyricStyle"/> and <see cref="KaraokeSkinConfiguration.NoteStyle"/>
 /// </summary>
 /// <param name="config"></param>
 /// <param name="singers"></param>
 public KaraokeSkinLookup(KaraokeSkinConfiguration config, int[] singers)
     : this(config, SingerUtils.GetShiftingStyleIndex(singers))
 {
     if (config != KaraokeSkinConfiguration.LyricStyle && config != KaraokeSkinConfiguration.NoteStyle)
     {
         throw new InvalidDataException($"Only {KaraokeSkinConfiguration.LyricStyle} and {KaraokeSkinConfiguration.NoteStyle} can call this ctor.");
     }
 }
Beispiel #2
0
 public void TestGetShiftingStyleIndex(int[] singerIndexes, int styleIndex)
 {
     Assert.AreEqual(SingerUtils.GetShiftingStyleIndex(singerIndexes), styleIndex);
 }