public void TestMethod_PingCommand_Check() { // Arrange var command = new PingCommand(); command.Params = "-ping"; // Act var result = command.IsMatch(); // Assert Assert.AreEqual(true, result); }
public void TestMethod_PingCommand() { // Arrange var command = new PingCommand(); command.Params = "-ping"; // Act var result = command.DoAction(); // Assert Assert.AreEqual("ping...", result); }