public void TestMethod1() { var tm = new TimerMock(); var br = new Brick(0, 0); var prop = br.GetType().GetField("burn", System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance); prop.SetValue(br, new Animation(Const.BrickBurnAnimation, Const.BlockSize, new TimerMock())); br.Burn(); tm.NextTick(); tm.NextTick(); tm.NextTick(); tm.NextTick(); }
public void FromNotVisibleToGrow() { brick.State = BrickState.NotVisible; brickTimer.NextTick(); Assert.AreEqual(BrickState.Grow, brick.State); }
public void FromGrowToVisible() { brick.State = BrickState.Grow; growTimer.NextTick(frameQty); Assert.AreEqual(BrickState.Visible, brick.State); }
public void FromBurnToNotVisible() { brick.State = BrickState.Burn; brick.Burn(); burnTimer.NextTick(frameQty); Assert.AreEqual(BrickState.NotVisible, brick.State); }