SirenOfShame.Test.Unit.Watcher.RulesEngineWrapper.Stop C# (CSharp) Method

Stop() public method

public Stop ( ) : void
return void
        public void Stop()
        {
            ((WatcherFake)CiEntryPointSetting.GetWatcher(Settings)).InvokeStoppedWatching();
        }

Usage Example

 public void WhenStopWatchingThenStartWatching_InvokeChangeBuildStatuses()
 {
     var rulesEngine = new RulesEngineWrapper();
     rulesEngine.InvokeStatusChecked(BuildStatusEnum.Working);
     Assert.AreEqual(2, rulesEngine.RefreshStatusEvents.Count);
     rulesEngine.Stop();
     rulesEngine.Start();
     Assert.AreEqual(3, rulesEngine.RefreshStatusEvents.Count);
 }