コード例 #1
0
        public void SetUp()
        {
            hierarchy =
                StoryTeller.Testing.DataMother.BuildHierarchy(
                    @"
t1,Success
t2,Failure
t3,Success
s1/t4,Success
s1/t5,Success
s1/t6,Failure
");
            events   = MockRepository.GenerateMock <IEventAggregator>();
            view     = new StubExplorerView();
            explorer = new TestExplorer(view, events, null, new TestFilter(), null);
            explorer.Handle(hierarchy);


            var suite = new Suite("NewSuite");

            hierarchy.FindSuite("s1").AddSuite(suite);

            explorer.HandleMessage(new SuiteAddedMessage
            {
                NewSuite = suite
            });
        }
コード例 #2
0
        public void SetUp()
        {
            hierarchy =
                StoryTeller.Testing.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
");
            events   = MockRepository.GenerateMock <IEventAggregator>();
            view     = new StubExplorerView();
            explorer = new TestExplorer(view, events, null, new TestFilter(), null);
            explorer.Handle(hierarchy);
        }
コード例 #3
0
        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(), new TestFilter(), null);
            explorer.Handle(hierarchy);
        }
コード例 #4
0
        public void SetUp()
        {
            hierarchy =
                DataMother.BuildHierarchy(
                    @"
t1,Success
t2,Failure
t3,Success
s1/t4,Success
s1/t5,Success
s1/t6,Failure
");

            hierarchy.AddSuite(new Suite("Empty"));

            events   = MockRepository.GenerateMock <IEventAggregator>();
            view     = new StubExplorerView();
            explorer = new TestExplorer(view, events, null, new TestFilter(), null);
            explorer.Handle(hierarchy);
        }
コード例 #5
0
        public void cancel_a_test_that_has_no_prior_result()
        {
            Test test = unknownTest();

            explorer.Handle(new TestRunEvent(test, TestState.NotQueued));

            explorer.NodeFor(test).Icon.ShouldEqual(Icon.Unknown);
        }
コード例 #6
0
 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);
        }