public void CanRunATask() { var shell = new Shell(new FakeLog()); ProcessOutput output = null; FileSystemUtils.Pushd(@"..\..\..\TestBounceAssembly", () => output = shell.Exec(@"..\Bounce.Console.Tests\bin\Debug\bounce.exe", "Task1")); Assert.That(output, Is.Not.Null); Assert.That(output.ExitCode, Is.EqualTo(0)); Assert.That(output.Error.Trim(), Is.EqualTo("")); Assert.That(output.Output, Is.StringContaining("task1")); }
public void CanRunMultipleTasksWithMultipleArguments() { var shell = new Shell(new FakeLog()); ProcessOutput output = null; FileSystemUtils.Pushd(@"..\..\..\TestBounceAssembly\bin\Debug", () => output = shell.Exec(@"..\..\..\Bounce.Console.Tests\bin\Debug\bounce.exe", "Task3 Task4 Task5 /a a /b:b /c c")); Assert.That(output, Is.Not.Null); Assert.That(output.ExitCode, Is.EqualTo(0)); Assert.That(output.Error.Trim(), Is.EqualTo("")); Assert.That(output.Output, Is.StringContaining("a=a")); Assert.That(output.Output, Is.StringContaining("b=b")); Assert.That(output.Output, Is.StringContaining("c=c")); }