Beispiel #1
0
 public TimeTagInfo(Lyric lyric)
     : base(lyric)
 {
     lyric.TimeTagsBindable.BindValueChanged(value =>
     {
         BadgeText = LyricUtils.TimeTagTimeFormattedString(Lyric);
     }, true);
 }
Beispiel #2
0
        public void TestTimeTagTimeFormattedString(string[] timeTags, string format)
        {
            var lyric = new Lyric
            {
                TimeTags = TestCaseTagHelper.ParseTimeTags(timeTags),
            };

            Assert.AreEqual(LyricUtils.TimeTagTimeFormattedString(lyric), format);
        }