예제 #1
0
 public async Task Run(CancellationToken cancel)
 {
     await ExecuteRun
     .Run(
         groups : GetGroupRunners.Get(cancel),
         sourcePath : Instructions.SourcePath,
         outputDir : Instructions.OutputDirectory,
         cancel : cancel,
         runParameters : new RunParameters(
             ProfileSettings.TargetLanguage,
             ProfileSettings.Localize,
             Instructions.PersistenceMode ?? PersistenceMode.None,
             Instructions.PersistencePath)).ConfigureAwait(false);
 }
예제 #2
0
        public async Task NoPatchersShortCircuits(
            CancellationToken cancellation,
            FilePath?sourcePath,
            DirectoryPath outputDir,
            RunParameters runParameters,
            ExecuteRun sut)
        {
            IGroupRun[] groups = Array.Empty <IGroupRun>();
            await sut.Run(
                groups,
                cancellation,
                outputDir,
                runParameters,
                sourcePath);

            sut.EnsureSourcePathExists.DidNotReceiveWithAnyArgs().Ensure(default);
예제 #3
0
        public async Task ResetsWorkingDirectory(
            IGroupRun[] groups,
            CancellationToken cancellation,
            DirectoryPath outputDir,
            FilePath?sourcePath,
            RunParameters runParameters,
            ExecuteRun sut)
        {
            await sut.Run(
                groups,
                cancellation,
                outputDir,
                runParameters,
                sourcePath);

            sut.ResetWorkingDirectory.Received(1).Reset();
        }