Esempio n. 1
0
        public void Test_LoadLine()
        {
            var reader = new LineReader (600, 480);

            reader.LoadFromFile ("HelloMiku.txt");

            Assert.AreEqual (10, reader.LineCount);
        }
Esempio n. 2
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);
        }