Exemple #1
0
        public void Parse()
        {
            string   text     = File.ReadAllText("./test.lrc");
            LrcBlock lrcBlock = new LrcBlock(text);
            bool     a        = lrcBlock.Properties.AllProperties.Count() == 5;
            bool     b        = lrcBlock.Lines.Count() == 5;

            Assert.AreEqual(a && b, true);
        }
Exemple #2
0
        public void ToString()
        {
            string   text     = File.ReadAllText("./test.lrc");
            LrcBlock lrcBlock = new LrcBlock(text);

            ((LrcProperties)lrcBlock.Properties).Offset = -300;
            string result = lrcBlock.ToString();

            Assert.IsNotEmpty(result);
        }
 public SourceInfo(StorageFolder folder, MusicFile musicFile, LrcBlock lrcBlock)
 {
     Folder    = folder;
     MusicFile = musicFile;
     LrcBlock  = lrcBlock;
 }