diff options
author | Gert Driesen <drieseng@users.sourceforge.net> | 2007-01-23 01:53:56 +0300 |
---|---|---|
committer | Gert Driesen <drieseng@users.sourceforge.net> | 2007-01-23 01:53:56 +0300 |
commit | 90f556e71285466267ad66375421cdff9e42328c (patch) | |
tree | e46d9395c5e077d2493df0121a0c75c4937d5501 | |
parent | ef5e80154ada360b9eeddb77923d5d50187c0b8d (diff) |
* SmtpClient.cs: Added tests for default values.
svn path=/trunk/mcs/; revision=71486
-rw-r--r-- | mcs/class/System/Test/System.Net.Mail/ChangeLog | 4 | ||||
-rw-r--r-- | mcs/class/System/Test/System.Net.Mail/SmtpClientTest.cs | 50 |
2 files changed, 54 insertions, 0 deletions
diff --git a/mcs/class/System/Test/System.Net.Mail/ChangeLog b/mcs/class/System/Test/System.Net.Mail/ChangeLog index 951b83ac3ee..a0917d314ad 100644 --- a/mcs/class/System/Test/System.Net.Mail/ChangeLog +++ b/mcs/class/System/Test/System.Net.Mail/ChangeLog @@ -1,3 +1,7 @@ +2007-01-22 Gert Driesen <drieseng@users.sourceforge.net> + + * SmtpClient.cs: Added tests for default values. + 2006-10-31 Sebastien Pouliot <sebastien@ximian.com> * SmtpPermissionAttributeTest.cs: New. Unit tests for diff --git a/mcs/class/System/Test/System.Net.Mail/SmtpClientTest.cs b/mcs/class/System/Test/System.Net.Mail/SmtpClientTest.cs index cc6b965b5bf..6a778dacecc 100644 --- a/mcs/class/System/Test/System.Net.Mail/SmtpClientTest.cs +++ b/mcs/class/System/Test/System.Net.Mail/SmtpClientTest.cs @@ -59,6 +59,56 @@ namespace MonoTests.System.Net.Mail { smtp.Host = String.Empty; } + + [Test] + [Category ("NotWorking")] + public void Credentials_Default () + { + Assert.IsNull (smtp.Credentials); + } + + [Test] + public void DeliveryMethod_Default () + { + Assert.AreEqual (SmtpDeliveryMethod.Network, smtp.DeliveryMethod); + } + + [Test] + public void EnableSsl_Default () + { + Assert.IsFalse (smtp.EnableSsl); + } + + [Test] + [Category ("NotWorking")] + public void Host_Default () + { + Assert.IsNull (smtp.Host); + } + + [Test] + public void PickupDirectoryLocation_Default () + { + Assert.IsNull (smtp.PickupDirectoryLocation); + } + + [Test] + public void Port_Default () + { + Assert.AreEqual (25, smtp.Port); + } + + [Test] + public void Timeout_Default () + { + Assert.AreEqual (100000, smtp.Timeout); + } + + [Test] + public void UseDefaultCredentials_Default () + { + Assert.IsFalse (smtp.UseDefaultCredentials); + } } } #endif |