private ExecWrapper PrepareExecWrapper(string command) { IBuildEngine2 mockEngine = new MockEngine(true); ExecWrapper exec = new ExecWrapper(); exec.BuildEngine = mockEngine; exec.Command = command; return exec; }
private ExecWrapper PrepareExecWrapper(string command) { IBuildEngine2 mockEngine = new MockEngine(_output); ExecWrapper exec = new ExecWrapper(); exec.BuildEngine = mockEngine; exec.Command = command; return(exec); }
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); }