public void TestSkip() { byte[] data = new byte[] { 65, 66, 67, 68, 69, 70, 71 }; WriteTestFile(data); MidiFileReader reader = new MidiFileReader(testfile); Assert.AreEqual(reader.GetOffset(), 0); reader.Skip(3); Assert.AreEqual(reader.GetOffset(), 3); Assert.AreEqual(reader.ReadByte(), 68); reader.Skip(2); Assert.AreEqual(reader.GetOffset(), 6); Assert.AreEqual(reader.ReadByte(), 71); Assert.AreEqual(reader.GetOffset(), 7); File.Delete(testfile); }