public void Execute() { var t = new LocalCommandLineTask(new DotNetPath(), "ping"); t.Args = "localhost"; t.Execute(); }
public void VerifyCanRunWithExecutablePathSet() { var t = new LocalCommandLineTask(new DotNetPath(), "ping") { ExecutableIsLocatedAt = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Windows), "system32"), Args = "localhost" }; var result = t.Execute(); result.Results.Select(r=> r.Status).ToList().ShouldContain(DeploymentItemStatus.Good); }
public void Execute() { var t = new LocalCommandLineTask("ping"); t.Args = "localhost"; t.Execute(); }