public void handles_the_clear_test_results_message()
        {
            explorer.ResultStatusChanged(ResultStatus.Unknown);

            var spec =
                new TreeNodeSpecification(
                    @"
suite:s9
test:s9/t17
test:s9/t18
");

            spec.AssertMatch(view.TestNode);


            explorer.HandleMessage(new ClearResultsMessage());

            spec =
                new TreeNodeSpecification(
                    @"
suite:s1
suite:s1/s2
suite:s1/s2/s3
suite:s1/s2/s3/s4
test:s1/s2/s3/s4/t11
test:s1/s2/s3/t9
test:s1/s2/s3/t10
test:s1/s2/t7
test:s1/s2/t8
test:s1/t4
test:s1/t5
test:s1/t6
suite:s5
suite:s5/s6
suite:s5/s6/s7
suite:s5/s6/s7/s8
test:s5/s6/s7/s8/t15
test:s5/s6/s7/t14
test:s5/s6/t13
test:s5/t12
suite:s9
test:s9/t16
test:s9/t17
test:s9/t18
test:t1
test:t2
test:t3
");

            spec.AssertMatch(view.TestNode);
        }
        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
            });
        }