Exemplo n.º 1
0
        public void CancelAll_EffectContainsOneEffect_EffectIsCancelled()
        {
            GameEffectList effectList = NewGameEffectList();
            var            effect     = NewFakeEffect();

            effectList.Add(effect);

            effectList.CancelAll();

            Assert.IsTrue(effect.receivedCancel);
        }
Exemplo n.º 2
0
        public void CancelAll_EffectContainsOneEffect_EffectIsCancelled()
        {
            GameEffectList effectList = createEffectListWithValidOwner();
            var            effect     = Substitute.For <IGameEffect>();

            effectList.Add(effect);

            effectList.CancelAll();

            effect.Received().Cancel(false);
        }