Esempio n. 1
0
        public void AddPosYTest()
        {
            PowerUpBuilder builder = new PowerUpBuilder();

            builder.AddPosY(10);
            ArenaObject a = builder.CreateObject();

            Assert.IsTrue(a.PosY == 10);
        }
Esempio n. 2
0
        public void GetReboundStrategyTest(ArenaObjectType type)
        {
            PowerUpBuilder builder = new PowerUpBuilder();
            PowerUp        a       = builder.CreateObject() as PowerUp;

            a.SetTypeParams(type);
            var str = a.GetReboundStrategy();

            Assert.IsTrue(a.Type == type);
        }