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")); }
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")); }
public void CollectTypeInfo() { smtpAction = new PrivateObjectTester("nDumbster.smtp.SmtpActionType,nDumbster", (sbyte)0); smtpState = new PrivateObjectTester("nDumbster.smtp.SmtpState,nDumbster", (sbyte)0); }