コード例 #1
0
        public MinVerToolFixture(ICakeLog log)
            : base("dummy.exe")
        {
            Log = log ?? throw new ArgumentNullException(nameof(log));

            var context = new MinVerToolContext();

            LocalTool  = new MinVerLocalToolFixture(this, context);
            GlobalTool = new MinVerGlobalToolFixture(this, context);

            FileSystem.CreateFile(LocalTool.DefaultToolPath);
            FileSystem.CreateFile(GlobalTool.DefaultToolPath);
        }
コード例 #2
0
 public MinVerGlobalToolFixture(MinVerToolFixture _, MinVerToolContext context)
     : base(context)
 {
     _tool          = new MinVerGlobalTool(_.FileSystem, _.Environment, ProcessRunner, _.Tools, _.Log);
     StandardOutput = MinVerToolOutputs.DefaultOutputForGlobalTool;
 }
        // ReSharper restore InconsistentNaming

        protected MinVerToolFixtureBase(MinVerToolContext context)
            : base("dummy.exe")
        {
            _context = context ?? throw new ArgumentNullException(nameof(context));
        }