Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mcs/class/System/Test/System.Net.Mail/SmtpClientTest.cs')
-rw-r--r--mcs/class/System/Test/System.Net.Mail/SmtpClientTest.cs64
1 files changed, 0 insertions, 64 deletions
diff --git a/mcs/class/System/Test/System.Net.Mail/SmtpClientTest.cs b/mcs/class/System/Test/System.Net.Mail/SmtpClientTest.cs
deleted file mode 100644
index cc6b965b5bf..00000000000
--- a/mcs/class/System/Test/System.Net.Mail/SmtpClientTest.cs
+++ /dev/null
@@ -1,64 +0,0 @@
-//
-// SmtpClientTest.cs - NUnit Test Cases for System.Net.Mail.SmtpClient
-//
-// Authors:
-// John Luke (john.luke@gmail.com)
-//
-// (C) 2006 John Luke
-//
-#if NET_2_0
-using NUnit.Framework;
-using System;
-using System.IO;
-using System.Net.Mail;
-using System.Net.Mime;
-
-namespace MonoTests.System.Net.Mail
-{
- [TestFixture]
- public class SmtpClientTest
- {
- SmtpClient smtp;
-
- [SetUp]
- public void GetReady ()
- {
- smtp = new SmtpClient ();
- }
-
- [Test]
- public void InitialTimeout ()
- {
- Assert.AreEqual (smtp.Timeout, 100000);
- }
-
- [Test]
- [ExpectedException (typeof (ArgumentOutOfRangeException))]
- public void NegativePortValue ()
- {
- smtp.Port = -1;
- }
-
- [Test]
- [ExpectedException (typeof (ArgumentOutOfRangeException))]
- public void NegativeTimeoutValue ()
- {
- smtp.Timeout = -1;
- }
-
- [Test]
- [ExpectedException (typeof (ArgumentNullException))]
- public void NullHost ()
- {
- smtp.Host = null;
- }
-
- [Test]
- [ExpectedException (typeof (ArgumentException))]
- public void EmptyHost ()
- {
- smtp.Host = String.Empty;
- }
- }
-}
-#endif