예제 #1
0
 private ExecWrapper PrepareExecWrapper(string command)
 {
     IBuildEngine2 mockEngine = new MockEngine(true);
     ExecWrapper exec = new ExecWrapper();
     exec.BuildEngine = mockEngine;
     exec.Command = command;
     return exec;
 }
예제 #2
0
        private ExecWrapper PrepareExecWrapper(string command)
        {
            IBuildEngine2 mockEngine = new MockEngine(_output);
            ExecWrapper   exec       = new ExecWrapper();

            exec.BuildEngine = mockEngine;
            exec.Command     = command;
            return(exec);
        }
예제 #3
0
        public void StdEncodings()
        {
            ExecWrapper exec = PrepareExecWrapper("echo [%cd%]");

            exec.StdErrEncoding = "US-ASCII";
            Assert.Contains("US-ASCII", exec.StdErrEncoding);
            Assert.Contains("US-ASCII", exec.StdErrorEncoding.EncodingName);

            exec.StdOutEncoding = "US-ASCII";
            Assert.Contains("US-ASCII", exec.StdOutEncoding);
            Assert.Contains("US-ASCII", exec.StdOutputEncoding.EncodingName);
        }