public void ErrorTextWriter_ShouldReturnParserSetup()
        {
            var parser     = A.Fake <Parser>();
            var textWriter = A.Fake <TextWriter>();

            var setup = new ParserSetup(parser);

            setup.ErrorTextWriter(textWriter).Should().Be(setup);
        }
        public void ErrorTextWriter_ShouldAssignErrorTextWriterToParser()
        {
            var parser     = A.Fake <Parser>();
            var textWriter = A.Fake <TextWriter>();

            var setup = new ParserSetup(parser);

            setup.ErrorTextWriter(textWriter);

            A.CallToSet(() => parser.ErrorTextWriter).To(textWriter).MustHaveHappened();
        }