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);
        }
        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
            });
        }
        public void SetUp()
        {
            hierarchy =
                StoryTeller.Testing.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);
        }
        protected override void beforeEach()
        {
            hierarchy =
                StoryTeller.Testing.DataMother.BuildHierarchy(
                    @"
s1/t4,Success
s1/t5,Success
s1/t6,Failure
s1/s3/t8,Success
s2/t7,Failure
");
            view = new StubExplorerView();
            Services.Inject <IExplorerView>(view);
            Services.Inject <ITestFilter>(new TestFilter());

            ClassUnderTest.Handle(hierarchy);
        }
        protected override void beforeEach()
        {
            hierarchy =
                StoryTeller.Testing.DataMother.BuildHierarchy(
                    @"
s1/t4,Success
s1/t5,Success
s1/t6,Failure
s1/s3/t8,Success
s2/t7,Failure
");
            view = new StubExplorerView();
            Services.Inject <IExplorerView>(view);
            Services.Inject <ITestFilter>(new TestFilter());

            ClassUnderTest.Handle(hierarchy);

            test = hierarchy.FindTest("s1/t4");
            test.ShouldNotBeNull();

            ClassUnderTest.Handle(new DeleteTestMessage(test));
        }
Exemplo n.º 6
0
        public void SetUp()
        {
            container      = new Container();
            view           = new StubExplorerView();
            shellConductor = MockRepository.GenerateMock <IScreenConductor>();

            explorer = new FixtureExplorer(view, container);


            library = new FixtureLibrary();
            FixtureGraph fixture1 = library.FixtureFor("Math");

            fixture1.AddStructure("Grammar1", new Sentence());
            fixture1.AddStructure("Grammar2", new Sentence());
            fixture1.AddStructure("Grammar3", new Sentence());

            FixtureGraph fixture2 = library.FixtureFor("Arithmetic");

            fixture2.AddStructure("Grammar4", new Sentence());
            fixture2.AddStructure("Grammar5", new Sentence());

            explorer.Handle(new BinaryRecycleFinished(library));
        }