public void CancelAll_EffectContainsOneEffect_EffectIsCancelled() { GameEffectList effectList = NewGameEffectList(); var effect = NewFakeEffect(); effectList.Add(effect); effectList.CancelAll(); Assert.IsTrue(effect.receivedCancel); }
public void CancelAll_EffectContainsOneEffect_EffectIsCancelled() { GameEffectList effectList = createEffectListWithValidOwner(); var effect = Substitute.For <IGameEffect>(); effectList.Add(effect); effectList.CancelAll(); effect.Received().Cancel(false); }