Revision: 33
Author: tmyroadctfig
Date: 2006-05-14 01:09:03 -0700 (Sun, 14 May 2006)
ViewCVS: http://svn.sourceforge.net/nmailserver/?rev=33&view=rev
Log Message:
-----------
Committed patch from Jared Hodges - minor change to unit tests.
Modified Paths:
--------------
NMail/trunk/NMail.UnitTests/SmtpServiceTests.cs
Modified: NMail/trunk/NMail.UnitTests/SmtpServiceTests.cs
===================================================================
--- NMail/trunk/NMail.UnitTests/SmtpServiceTests.cs 2006-05-14 08:04:49 UTC (rev 32)
+++ NMail/trunk/NMail.UnitTests/SmtpServiceTests.cs 2006-05-14 08:09:03 UTC (rev 33)
@@ -39,7 +39,12 @@
/// </summary>
private void Open() {
this.connection = new TcpTextConnection(log);
- this.connection.Open(new Host(IPAddress.Loopback), 25);
+ try {
+ this.connection.Open(new Host(IPAddress.Loopback), 25);
+ } catch (System.Net.Sockets.SocketException e) {
+ Assert.Fail(e.Message +
+ "\n(These tests are not standalone - you may need to manually start the SMTP Service.)");
+ }
// Should get a 220 response
string welcome = this.connection.ReadLine();
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|