public void execute_when_the_fixture_setup_fails_should_log_the_exception()
        {
            string sectionName = typeof(FixtureThatThrowsExceptionInSetUp).GetFixtureAlias();
            Step step = new Step().WithChildren(sectionName);

            var grammar = new EmbeddedSectionGrammar<FixtureThatThrowsExceptionInSetUp>();

            var results = grammar.Execute(step);

            results.Results.ExceptionText.ShouldNotBeNull();
        }
        public void execute_when_the_fixture_setup_fails_should_log_the_exception()
        {
            string sectionName = typeof(FixtureThatThrowsExceptionInSetUp).GetFixtureAlias();
            Step   step        = new Step().WithChildren(sectionName);

            var grammar = new EmbeddedSectionGrammar <FixtureThatThrowsExceptionInSetUp>();

            var results = grammar.Execute(step);

            results.Results.ExceptionText.ShouldNotBeNull();
        }
        public void execute_when_the_fixture_teardown_fails_should_log_the_exception()
        {
            string sectionName = typeof(FixtureThatThrowsExceptionInTearDown).GetFixtureAlias();
            Step   step        = new Step().WithChildren(sectionName);

            var grammar = new EmbeddedSectionGrammar <FixtureThatThrowsExceptionInTearDown>();

            StepExecutionResult results = grammar.Execute(step);

            results.Counts.Exceptions.ShouldEqual(1);

            results.Results.ExceptionText.ShouldNotBeNull();
        }
        public void execute_when_the_fixture_teardown_fails_should_log_the_exception()
        {
            string sectionName = typeof(FixtureThatThrowsExceptionInTearDown).GetFixtureAlias();
            Step step = new Step().WithChildren(sectionName);

            var grammar = new EmbeddedSectionGrammar<FixtureThatThrowsExceptionInTearDown>();

            StepExecutionResult results = grammar.Execute(step);
            results.Counts.Exceptions.ShouldEqual(1);

            results.Results.ExceptionText.ShouldNotBeNull();
        }