public void Clone() { Animation anim = new Animation(2, 32, 32, 0, 0); anim.FramesPerSecond = 60; anim.Update(); anim.Update(); anim.Update(); Animation clone = (Animation)anim.Clone(); Assert.That( (anim.CurrentFrame == clone.CurrentFrame) && (anim.CurrentFrameRect == clone.CurrentFrameRect) && (anim.FrameHeight == clone.FrameHeight) && (anim.FramesPerSecond == clone.FramesPerSecond) && (anim.FrameWidth == clone.FrameWidth) && (anim.Looped == clone.Looped), "Clone did not produce a copy of the Animation."); Assert.AreNotSame(anim, clone, "Clone produced a reference copy of the Animation."); }