public void Setup() { _solutionExplorerMock = Substitute.For<ISolutionExplorer>(); _testExtractorMock = Substitute.For<ITestsExtractor>(); _settingsStoreMock = Substitute.For<ICoverageSettingsStore>(); _coverageStoreMock = Substitute.For<ICoverageStore>(); _settingsStoreMock.Read().Returns(new CoverageSettings()); _sut = new TestExplorer(_solutionExplorerMock, _testExtractorMock, _coverageStoreMock, _settingsStoreMock); }
public void SetUp() { hierarchy = DataMother.BuildHierarchy( @" t1,Success t2,Failure t3,Success s1/t4,Success,Regression s1/t5,Success,Regression s1/t6,Failure,Regression s1/s2/t7,Success s1/s2/t8,Failure,Regression s1/s2/s3/t9,Success s1/s2/s3/t10,Success s1/s2/s3/s4/t11,Success s5/t12,Success s5/s6/t13,Success s5/s6/s7/t14,Success s5/s6/s7/s8/t15,Success s9/t16,Success,Regression s9/t17,Unknown s9/t18,Unknown "); events = new NulloEventAggregator(); view = new StubExplorerView(); explorer = new TestExplorer(view, events, new TestFilterBar()); explorer.Handle(hierarchy); }
public void SetUp() { hierarchy = DataMother.BuildHierarchy( @" t1,Success t2,Failure t3,Success s1/t4,Success s1/t5,Success s1/t6,Failure s1/s2/t7,Success s1/s2/t8,Failure s1/s2/s3/t9,Success s1/s2/s3/t10,Success s1/s2/s3/s4/t11,Success s5/t12,Success s5/s6/t13,Success s5/s6/s7/t14,Success s5/s6/s7/s8/t15,Success s9/t16,Success s9/t17,Success s9/t18,Success "); view = new StubExplorerView(); events = MockRepository.GenerateMock<IEventAggregator>(); explorer = new TestExplorer(view, events, new TestFilterBar()); explorer.Handle(hierarchy); }