public void WhenTestsAreUnloaded_ProgressBar_IsInitialized() { _model.HasTests.Returns(false); _model.IsTestRunning.Returns(false); _model.TestUnloaded += Raise.Event <TestEventHandler>(new TestEventArgs(TestAction.TestUnloaded)); _view.Received().Initialize(100); }
public void WhenTestsAreLoaded_ProgressBar_IsInitialized() { _model.HasTests.Returns(true); _model.IsTestRunning.Returns(false); var testNode = new TestNode("<test-suite id='1' testcasecount='1234'/>"); _model.Events.TestLoaded += Raise.Event <TestNodeEventHandler>(new TestNodeEventArgs(testNode)); _view.Received().Initialize(100); }