Пример #1
0
        public void TestWrite()
        {
            byte[] data = TestUtils.GetArrayFromResourceStream("Bass_sample.mid");
            midi.Read(data);
            MemoryStream ms = new MemoryStream();

            midi.Write(ms, MIDIWriteOptions.ExplicitStatus);
            Assert.AreEqual(data, ms.ToArray());
        }
Пример #2
0
 public void TestWrite()
 {
     midi.ReadHMP(TestUtils.GetResourceStream("vgame20.hmp"));
     Assert.AreEqual(110712, midi.Write().Length);
 }
Пример #3
0
 private static void WriteFile(MIDISequence midi, string fn)
 {
     ResolvePath(fn).Replace(midi.Write());
 }