Exemple #1
0
        internal static SDProject ParseProject()
        {
            var testProjectPath =
                Path.Combine(
                Path.GetDirectoryName(Assembly.GetAssembly(typeof(Regression1)).Location),
                "..", "..", "..", "SharpDox.TestProject", "SharpDox.TestProject.csproj");
            
            var coreConfig = Mock.Of<ICoreConfigSection>(
                c => c.InputFile == testProjectPath &&
                c.ProjectName == "TestProject" &&
                c.DocLanguage == "en" &&
                c.ExcludedIdentifiers == new ObservableCollection<string>());
            
            var configController = Mock.Of<IConfigController>(
                c=> c.GetConfigSection<ICoreConfigSection>() == coreConfig);

            var stepInput = new StepInput(configController, new NRefactoryParser(Mock.Of<ParserStrings>()), new SDBuildStrings(), null);

            var config = new List<StepBase>();
            var checkConfig = new CheckConfigStep(stepInput, 0, 15);

            config.Add(new ParseProjectStep(stepInput, 0, 50));
            config.Add(new ParseCodeStep(stepInput, 50, 100));

            var sdProject = new SDProject();
            foreach (var step in config)
            {
                sdProject = step.RunStep(sdProject);
            }

            return sdProject;
        }
Exemple #2
0
        public static List<StepBase> StructureParseConfig(IConfigController configController, ICodeParser codeParser, SDBuildStrings sdBuildStrings, IExporter[] allExporters)
        {
            var stepInput = new StepInput(configController, codeParser, sdBuildStrings, allExporters);

            var config = new List<StepBase>();

            config.Add(new CheckConfigStep(stepInput, 0, 15));
            config.Add(new ParseProjectStep(stepInput, 15, 25));
            config.Add(new StructeParseCodeStep(stepInput, 25, 100));

            return config;
        }
 public StructeParseCodeStep(StepInput stepInput, int progressStart, int progressEnd) :
     base(stepInput, stepInput.SDBuildStrings.StepParseCode, new StepRange(progressStart, progressEnd)) { }
Exemple #4
0
 public ExportStep(StepInput stepInput, int progressStart, int progressEnd) :
     base(stepInput, stepInput.SDBuildStrings.StepExport, new StepRange(progressStart, progressEnd))
 {
 }
 public StructeParseCodeStep(StepInput stepInput, int progressStart, int progressEnd) :
     base(stepInput, stepInput.SDBuildStrings.StepParseCode, new StepRange(progressStart, progressEnd))
 {
 }
 public ExtendedCheckConfigStep(StepInput stepInput, CheckConfigStep checkConfigStep, int progressStart, int progressEnd)
     : base(stepInput, stepInput.SDBuildStrings.StepCheckConfig, new StepRange(progressStart, progressEnd))
 {
     _checkConfigStep = checkConfigStep;
 }
Exemple #7
0
 protected StepBase(StepInput stepInput, string stepName, StepRange stepRange)
 {
     _stepInput = stepInput;
     StepName   = stepName;
     StepRange  = stepRange;
 }
Exemple #8
0
 public CheckConfigStep(StepInput stepInput, int progressStart, int progressEnd) :
     base(stepInput, stepInput.SDBuildStrings.StepCheckConfig, new StepRange(progressStart, progressEnd)) { }
Exemple #9
0
 public ParseProjectStep(StepInput stepInput, int progressStart, int progressEnd) :
     base(stepInput, stepInput.SDBuildStrings.StepParseProject, new StepRange(progressStart, progressEnd)) { }
 public ExtendedCheckConfigStep(StepInput stepInput, CheckConfigStep checkConfigStep, int progressStart, int progressEnd) :
     base(stepInput, stepInput.SDBuildStrings.StepCheckConfig, new StepRange(progressStart, progressEnd))
 {
     _checkConfigStep = checkConfigStep;
 }
Exemple #11
0
 protected StepBase(StepInput stepInput, string stepName, StepRange stepRange)
 {
     _stepInput = stepInput;
     StepName = stepName;
     StepRange = stepRange;
 }
Exemple #12
0
 public ExportStep(StepInput stepInput, int progressStart, int progressEnd) :
     base(stepInput, stepInput.SDBuildStrings.StepExport, new StepRange(progressStart, progressEnd)) { }
Exemple #13
0
 public ParseProjectStep(StepInput stepInput, int progressStart, int progressEnd) :
     base(stepInput, stepInput.SDBuildStrings.StepParseProject, new StepRange(progressStart, progressEnd))
 {
 }
Exemple #14
0
 public CheckConfigStep(StepInput stepInput, int progressStart, int progressEnd) :
     base(stepInput, stepInput.SDBuildStrings.StepCheckConfig, new StepRange(progressStart, progressEnd))
 {
 }