Exemple #1
0
        public void TestImproperDisconnect()
        {
            Application application = SingletonProvider<TestSetup>.Instance.GetApp();

             Account oAccount = SingletonProvider<TestSetup>.Instance.AddAccount(_domain, "*****@*****.**", "test");
             int iCount = application.Status.get_SessionCount(eSessionType.eSTPOP3);

             var oPOP3 = new POP3Simulator();
             oPOP3.Connect(110);
             AssertSessionCount(eSessionType.eSTPOP3, iCount + 1);
             oPOP3.Disconnect(); // Disconnect without sending quit

             AssertSessionCount(eSessionType.eSTPOP3, iCount);
        }