public void ShellService_RunIPConfigCommand() { //Arrange string command = "IPCONFIG"; ShellService service = new ShellService(); GingerAction gingerAction = new GingerAction(); //Act service.RunShell(gingerAction, command); //Assert Assert.IsNull(gingerAction.Errors); }
public void ShellService_RunFilesListCommand() { //Arrange string command = "FILES_LIST"; ShellService service = new ShellService(); GingerAction gingerAction = new GingerAction(); //Act service.RunShell(gingerAction, command); //Assert Assert.IsNull(gingerAction.Errors); }
public void ShellService_RunNetstatCommand() { //Arrange string command = "NETSTAT"; ShellService service = new ShellService(); GingerAction gingerAction = new GingerAction(); //Act service.RunShell(gingerAction, command); //Assert Assert.IsNull(gingerAction.Errors); }
public void ShellService_ValidateOS() { //Arrange string command = "CLEAR_SCREEN"; ShellService service = new ShellService(); GingerAction gingerAction = new GingerAction(); string targetOS = OperatingSystem.GetCurrentOS(); //Act service.RunShell(gingerAction, command); //Assert Assert.AreEqual(targetOS, gingerAction.Output["curr_os"]); }