示例#1
0
        public void WorldObject_VelocityTest()
        {
            WorldObject obj = new WorldObject();

            obj.setCenter(Point.Zero);
            obj.setVelocity(5.0f, 5.0f);

            obj.Update();

            Assert.NotEqual(obj.Position(), Vector2.Zero);
        }
示例#2
0
        public void WorldObject_DefaultInitTest()
        {
            WorldObject obj = new WorldObject();

            Assert.Equal(obj.velocity, Vector2.Zero);
        }