public void _0_TankState() { IUnit tank = new Tank(); Assert.AreEqual(true, tank.CanMove); Assert.AreEqual(5, tank.Damage); }
public void _2_MixState() { IUnit tank = new Tank(); Assert.AreEqual(true, tank.CanMove); tank.State = new SiegeState(); Assert.AreEqual(20, tank.Damage); }
public void _1_SiegeState() { IUnit tank = new Tank(); tank.State = new SiegeState(); Assert.AreEqual(false, tank.CanMove); Assert.AreEqual(20, tank.Damage); }