예제 #1
0
        public void UnrecognizedCommandDataHdrState()
        {
            PrivateObjectTester request  = new PrivateObjectTester("nDumbster.smtp.SmtpRequest,nDumbster", smtpAction.GetField("UNRECOG"), "", smtpState.GetField("DATA_HDR"));
            PrivateObjectTester response = new PrivateObjectTester(request.Invoke("Execute"));

            Assert.AreEqual(-1, response.GetProperty("Code"));
        }
예제 #2
0
 public void UnrecognizedCommandRcptState()
 {
     PrivateObjectTester request = new PrivateObjectTester("nDumbster.smtp.SmtpRequest,nDumbster",smtpAction.GetField("UNRECOG"), "", smtpState.GetField("RCPT"));
     PrivateObjectTester response = new PrivateObjectTester(request.Invoke("Execute"));
     Assert.AreEqual(500,  response.GetProperty("Code"));
 }
예제 #3
0
 public void CollectTypeInfo()
 {
     smtpAction = new PrivateObjectTester("nDumbster.smtp.SmtpActionType,nDumbster", (sbyte)0);
     smtpState = new PrivateObjectTester("nDumbster.smtp.SmtpState,nDumbster", (sbyte)0);
 }
예제 #4
0
 public void CollectTypeInfo()
 {
     smtpAction = new PrivateObjectTester("nDumbster.smtp.SmtpActionType,nDumbster", (sbyte)0);
     smtpState  = new PrivateObjectTester("nDumbster.smtp.SmtpState,nDumbster", (sbyte)0);
 }