예제 #1
0
        public void CancelAll_EffectContainsOneEffect_EffectIsCancelled()
        {
            GameEffectList effectList = NewGameEffectList();
            var            effect     = NewFakeEffect();

            effectList.Add(effect);

            effectList.CancelAll();

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

            effectList.Add(effect);

            effectList.CancelAll();

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