public void CreateTest1() { var frame = new UnsynchronisedLyricFrame(); Assert.AreEqual(frame.Descriptor.Id, "USLT"); Assert.AreEqual(frame.Language, "ENG"); Assert.AreEqual(frame.ContentDescriptor, ""); Assert.AreEqual(frame.Lyrics, ""); Assert.AreEqual(frame.Type, FrameType.UnsynchronisedLyric); Assert.AreEqual(frame.TextEncoding, Encoding.ASCII); }
public void CreateTest2() { const string descriptor = "Descriptor"; const string lyrics = "lala"; const string language = "language"; var frame = new UnsynchronisedLyricFrame(language, descriptor, lyrics, Encoding.ASCII); Assert.AreEqual(frame.Descriptor.Id, "USLT"); Assert.AreEqual(frame.Language, language); Assert.AreEqual(frame.ContentDescriptor, descriptor); Assert.AreEqual(frame.Lyrics, lyrics); Assert.AreEqual(frame.Type, FrameType.UnsynchronisedLyric); Assert.AreEqual(frame.TextEncoding, Encoding.ASCII); }
private static void WriteUnsychronisedLyrics(string descriptor, string lyrics, ICollection<IFrame> container) { var uslt = new UnsynchronisedLyricFrame("ENG", descriptor, lyrics, Encoding.ASCII); container.Add(uslt); }
private void ShowLyrics(UnsynchronisedLyricFrame lyricsFrame) { textBoxLyricsDescriptor.Text = lyricsFrame.ContentDescriptor; textBoxLyrics.Text = lyricsFrame.Lyrics; }