예제 #1
0
 int Run(Memory memory, IList<string> arguments) {
     ParseArguments(memory, arguments);
     var fileSystem = new FileSystemModel(memory.GetItem<Settings>().CodePageNumber);
     memory.GetItem<Context>().PageSource = fileSystem;
     memory.GetItem<Context>().SuitePath = new DirectoryPath(memory.GetItem<Settings>().InputFolder);
     myRunner = new SuiteRunner(memory, myProgressReporter);
     myRunner.Run(
         CreateStoryTestFolder(memory, fileSystem),
         selectedFile);
     return myRunner.TestCounts.FailCount;
 }
예제 #2
0
 public void Initialize()
 {
     var folderModel = new FileSystemModel();
     new SuiteConfiguration(memory).LoadXml(folderModel.GetPageContent(@"storytest.config.xml"));
     var inputPath = memory.GetItem<Settings>().InputFolder;
     var outputPath = memory.GetItem<Settings>().OutputFolder;
     var processor = new CellProcessorBase(memory, memory.GetItem<CellOperators>());
     view.ShowTests(new TestFiles(
             new FileFolder(inputPath),
             new FileFolder(outputPath),
             new StoryTestSuite(memory.GetItem<FileExclusions>(), s => IsExecutable(processor, s))
         ).Tree);
 }
예제 #3
0
파일: Shell.cs 프로젝트: GibSral/fitsharp
 public Shell() {
     progressReporter = new ConsoleReporter();
     folderModel = new FileSystemModel();
 }