Exemplo n.º 1
0
        public void Test_Jump()
        {
            var reader = new LineReader (600, 480);

            reader.LoadFromFile ("HelloMiku.txt");

            reader.Jump (5);
            Assert.AreEqual (5, reader.CurrentPosition);

            reader.Next ();
            Assert.AreEqual (6, reader.CurrentPosition);

            reader.Prev ();
            Assert.AreEqual (5, reader.CurrentPosition);

            reader.Rewind ();
            Assert.AreEqual (0, reader.CurrentPosition);
        }