diff options
Diffstat (limited to 'trunk/qpid/dotnet/client-010/test/interop/ConnectionTests.cs')
-rw-r--r-- | trunk/qpid/dotnet/client-010/test/interop/ConnectionTests.cs | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/trunk/qpid/dotnet/client-010/test/interop/ConnectionTests.cs b/trunk/qpid/dotnet/client-010/test/interop/ConnectionTests.cs deleted file mode 100644 index 0c2ea8a648..0000000000 --- a/trunk/qpid/dotnet/client-010/test/interop/ConnectionTests.cs +++ /dev/null @@ -1,59 +0,0 @@ -using System; -using System.Net.Sockets; -using NUnit.Framework; -using org.apache.qpid.client; -using test.Helpers; - -namespace test -{ - [TestFixture] - public class ConnectionTests - { - [SetUp] - public void Setup() - { - - } - - [Test] - [ExpectedException(typeof(Exception))] - public void should_raise_exception_in_calling_thread_on_authentification_failure() - { - var properties = ConfigHelpers.LoadConfig(); - - var client = new Client(); - client.Connect(properties["Host"], Convert.ToInt16(properties["Port"]), properties["VirtualHost"], - properties["Username"], "some silly password to make sure the authentification fail"); - } - - [Test] - [ExpectedException(typeof(Exception))] - public void should_raise_exception_in_calling_thread_on_authentification_failure_with_clodedListener() - { - var properties = ConfigHelpers.LoadConfig(); - - var client = new Client(); - client.ClosedListener = new FakeListener(); - client.Connect(properties["Host"], Convert.ToInt16(properties["Port"]), properties["VirtualHost"], - properties["Username"], "some silly password to make sure the authentification fail"); - } - - [Test] - public void should_not_block_on_close() - { - var properties = ConfigHelpers.LoadConfig(); - - var client = new Client(); - client.Connect(properties["Host"], Convert.ToInt16(properties["Port"]), properties["VirtualHost"], - properties["Username"], properties["Password"]); - client.Close(); - } - } - - public class FakeListener : IClosedListener - { - public void OnClosed(ErrorCode errorCode, string reason, Exception t) - { - } - } -} |