public void IsResponseCorrect_CommandResponseCorrect_ReturnTrue2() { SSH_USER_CORE.User user = new SSH_USER_CORE.User(); user.CreateSSHConnection("192.168.1.6", "alexander", "123321sanek"); user.SSHConnect(); string result = user.SSHRunCommand("cat alexander.txt"); user.SSHDisconnect(); Assert.AreEqual(result, "some text\n"); }
public void IsResponseCorrect_CommandResponseCorrect_ReturnTrue3() { SSH_USER_CORE.User user = new SSH_USER_CORE.User(); user.CreateSSHConnection("192.168.1.6", "alexander", "123321sanek"); user.SSHConnect(); string result1 = user.SSHRunCommand("umask"); user.SSHDisconnect(); Console.WriteLine("Result = " + result1); Assert.AreEqual(result1, "0002\n"); }