Beispiel #1
0
        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");
        }
Beispiel #2
0
        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");
        }