Exemple #1
0
        public void Execute()
        {
            var t = new LocalCommandLineTask(new DotNetPath(), "ping");
            t.Args = "localhost";
            t.Execute();

        }
Exemple #2
0
        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);
        }
Exemple #3
0
 public void Execute()
 {
     var t = new LocalCommandLineTask("ping");
     t.Args = "localhost";
     t.Execute();
 }