Ejemplo n.º 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;
        }
Ejemplo n.º 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;
        }
Ejemplo n.º 3
0
 public StructeParseCodeStep(StepInput stepInput, int progressStart, int progressEnd) :
     base(stepInput, stepInput.SDBuildStrings.StepParseCode, new StepRange(progressStart, progressEnd)) { }
Ejemplo n.º 4
0
 public ExportStep(StepInput stepInput, int progressStart, int progressEnd) :
     base(stepInput, stepInput.SDBuildStrings.StepExport, new StepRange(progressStart, progressEnd))
 {
 }
Ejemplo n.º 5
0
 public StructeParseCodeStep(StepInput stepInput, int progressStart, int progressEnd) :
     base(stepInput, stepInput.SDBuildStrings.StepParseCode, new StepRange(progressStart, progressEnd))
 {
 }
Ejemplo n.º 6
0
 public ExtendedCheckConfigStep(StepInput stepInput, CheckConfigStep checkConfigStep, int progressStart, int progressEnd)
     : base(stepInput, stepInput.SDBuildStrings.StepCheckConfig, new StepRange(progressStart, progressEnd))
 {
     _checkConfigStep = checkConfigStep;
 }
Ejemplo n.º 7
0
 protected StepBase(StepInput stepInput, string stepName, StepRange stepRange)
 {
     _stepInput = stepInput;
     StepName   = stepName;
     StepRange  = stepRange;
 }
Ejemplo n.º 8
0
 public CheckConfigStep(StepInput stepInput, int progressStart, int progressEnd) :
     base(stepInput, stepInput.SDBuildStrings.StepCheckConfig, new StepRange(progressStart, progressEnd)) { }
Ejemplo n.º 9
0
 public ParseProjectStep(StepInput stepInput, int progressStart, int progressEnd) :
     base(stepInput, stepInput.SDBuildStrings.StepParseProject, new StepRange(progressStart, progressEnd)) { }
Ejemplo n.º 10
0
 public ExtendedCheckConfigStep(StepInput stepInput, CheckConfigStep checkConfigStep, int progressStart, int progressEnd) :
     base(stepInput, stepInput.SDBuildStrings.StepCheckConfig, new StepRange(progressStart, progressEnd))
 {
     _checkConfigStep = checkConfigStep;
 }
Ejemplo n.º 11
0
 protected StepBase(StepInput stepInput, string stepName, StepRange stepRange)
 {
     _stepInput = stepInput;
     StepName = stepName;
     StepRange = stepRange;
 }
Ejemplo n.º 12
0
 public ExportStep(StepInput stepInput, int progressStart, int progressEnd) :
     base(stepInput, stepInput.SDBuildStrings.StepExport, new StepRange(progressStart, progressEnd)) { }
Ejemplo n.º 13
0
 public ParseProjectStep(StepInput stepInput, int progressStart, int progressEnd) :
     base(stepInput, stepInput.SDBuildStrings.StepParseProject, new StepRange(progressStart, progressEnd))
 {
 }
Ejemplo n.º 14
0
 public CheckConfigStep(StepInput stepInput, int progressStart, int progressEnd) :
     base(stepInput, stepInput.SDBuildStrings.StepCheckConfig, new StepRange(progressStart, progressEnd))
 {
 }