Exemplo n.º 1
0
        public void Reset()
        {
            Animation anim = new Animation(2, 32, 32, 0, 0);
            anim.FramesPerSecond = 60;
            Rectangle frame1 = anim.CurrentFrameRect;
            anim.Update();
            anim.Reset();
            Rectangle resetFrame = anim.CurrentFrameRect;

            Assert.That(frame1, Is.EqualTo(resetFrame));
        }