Exemple #1
0
        public void CanUpdateSkin_FirstTime_WhenCurrentSkinIsNull()
        {
            _skinChangeHandler.ConfigUpdated(new ConfigSettings {
                SkinName = "newSkin"
            });

            _skinLoader.ShouldHaveBeenCalled(l => l.Load(Arg <Skin> .Matches(s => s.Name == "newSkin")));
        }
Exemple #2
0
        public void CanCreatePresenter()
        {
            var presenter = _kernel.Get <CradiatorPresenter>();

            presenter.Init();

            _configSettings.ShouldHaveBeenCalled(c => c.AddObserver(presenter));
            _skinLoader.ShouldHaveBeenCalled(s => s.Load(Arg <Skin> .Is.Anything));
            _screenUpdater.ShouldHaveBeenCalled(s => s.Update());
            _configFileWatcher.ShouldHaveBeenCalled(c => c.Start());
        }