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

        }
Beispiel #2
0
        public void Verify()
        {
            var t = new LocalCommandLineTask("ping");
            t.Args = "localhost";
            var r = t.VerifyCanRun();
            var vi = new DeploymentItem(DeploymentItemStatus.Good, "");

            Assert.AreEqual(1, r.Results.Count);

            //Assert.Contains(vi, r.Results);
        }
Beispiel #3
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);
        }
Beispiel #4
0
 public void Execute()
 {
     var t = new LocalCommandLineTask("ping");
     t.Args = "localhost";
     t.Execute();
 }