Example #1
0
        public void ItShouldBePossibleToTestSAConnectionUsingAPIFailure()
        {
            hMailServer.AntiSpam antiSpam = _settings.AntiSpam;

            string resultText;

            CustomAssert.IsFalse(antiSpam.TestSpamAssassinConnection("localhost", 0, out resultText));
        }
Example #2
0
        public void ItShouldBePossibleToTestSAConnectionUsingAPISuccess()
        {
            hMailServer.AntiSpam antiSpam = _settings.AntiSpam;

            string resultText;

            CustomAssert.IsTrue(antiSpam.TestSpamAssassinConnection("localhost", 783, out resultText));
            CustomAssert.IsTrue(resultText.Contains("Content analysis details:"));
        }