コード例 #1
0
        public void CheckingCheckFtpConnectionWithBadConnectionString()
        {
            var webclass = new WebClass();

            var result = webclass.CheckFtpConnection("test", "test", "test", "");

            Assert.That(result, Is.EqualTo(false));
        }
コード例 #2
0
        public void CheckingCheckFtpConnectionWithGoodConnectionString()
        {
            var webclass = new WebClass();

            var result = webclass.CheckFtpConnection("localhost", "tomasz", "tomasz123", "");

            Assert.That(result, Is.EqualTo(true));
        }