public void Parser_NoOptionsSpecified_UsesOpenCoverParser()
        {
            var opts      = Substitute.For <ICommandOptions>();
            var coveralls = new CoverallsBootstrap(opts);

            coveralls.CreateParser().Should().BeOfType <OpenCoverParser>();
        }
 public void Parser_ParserOpenCoverSpecified_UsesOpenCoverParser()
 {
     var opts = Substitute.For<ICommandOptions>();
     opts.Parser.ReturnsForAnyArgs(ParserType.OpenCover);
     var coveralls = new CoverallsBootstrap(opts);
     coveralls.CreateParser().Should().BeOfType<OpenCoverParser>();
 }
        public void Parser_NoOptionsSpecified_UsesOpenCoverParser()
        {
            var opts = Substitute.For<ICommandOptions>();
            var coveralls = new CoverallsBootstrap(opts);

            coveralls.CreateParser().Should().BeOfType<OpenCoverParser>();
        }
        public void Parser_ParserAutoDetectSpecified_UsesAutoParser()
        {
            var opts = Substitute.For <ICommandOptions>();

            opts.Parser.ReturnsForAnyArgs(ParserType.AutoDetect);
            var coveralls = new CoverallsBootstrap(opts);

            coveralls.CreateParser().Should().BeOfType <AutoParser>();
        }
        public void Parser_ParserCoberturaSpecified_UsesCoberturaParser()
        {
            var opts = Substitute.For <ICommandOptions>();

            opts.Parser.ReturnsForAnyArgs(ParserType.Cobertura);
            var coveralls = new CoverallsBootstrap(opts);

            coveralls.CreateParser().Should().BeOfType <CoberturaCoverageParser>();
        }
Exemplo n.º 6
0
        public void Parser_ParserOpenCoverSpecified_UsesOpenCoverParser()
        {
            var opts = Substitute.For <ICommandOptions>();

            opts.Parser.ReturnsForAnyArgs(ParserTypes.OpenCover);
            var coveralls = new CoverallsBootstrap(opts);

            coveralls.CreateParser().Should().BeOfType <OpenCoverParser>();
        }