Example #1
0
        public void does_start_to_write_comments_again_after_the_offending_section_is_unlatched()
        {
            string fixtureName = "FixtureThatDoesNotExist";
            var    section     = new Section(fixtureName);

            parser.CallOn <ITestVisitor>(x => x.StartSection(section));
            parser.CallOn <ITestVisitor>(x => x.EndSection(section));

            var comment = new Comment();

            parser.CallOn <ITestVisitor>(x => x.WriteComment(comment));

            stream.AssertWasCalled(x => x.Comment(comment));
        }