public void CommitChanges_NoOpenChanges_NPCupdatePetWindowIsCalled()
        {
            var brain      = Substitute.For <ABrain, IControlledBrain>();
            var owner      = new GameNPC(brain);
            var effectList = new GameEffectList(owner);

            effectList.OnEffectsChanged(null);

            (owner.Brain as IControlledBrain).Received().UpdatePetWindow();
        }
        public void OnEffectsChanged_OpenChanges_NPCupdatePetWindowIsNotCalled()
        {
            var brain      = Substitute.For <ABrain, IControlledBrain>();
            var owner      = new GameNPC(brain);
            var effectList = new GameEffectList(owner);

            effectList.BeginChanges();
            effectList.OnEffectsChanged(null);

            (owner.Brain as IControlledBrain).DidNotReceive().UpdatePetWindow();
        }