diff options
author | Michael Barker <mike@middlesoft.co.uk> | 2009-01-06 10:04:42 +0300 |
---|---|---|
committer | Michael Barker <mike@middlesoft.co.uk> | 2009-01-06 10:04:42 +0300 |
commit | fe19960ab795719adab05c50748a3a69587a3deb (patch) | |
tree | 26b42e9582ef990eeab9c1374de9f327fcb863c7 /mcs/class/Mono.Messaging/Test | |
parent | 41d8ccc36629e2e4fa946dd46ffff8c749a4de65 (diff) | |
parent | 3777c193211cfec77bad2546697e11952f6804f9 (diff) |
2009-01-06 Michael Barker <mike@middlesoft.co.uk>
* Fixed failing message formatter tests and moved
them to the Mono.Messaging.RabbitMQ namespace
svn path=/trunk/mcs/; revision=122514
Diffstat (limited to 'mcs/class/Mono.Messaging/Test')
-rw-r--r-- | mcs/class/Mono.Messaging/Test/Mono.Messaging/MessageBaseTest.cs | 6 | ||||
-rw-r--r-- | mcs/class/Mono.Messaging/Test/Mono.Messaging/QueueReferenceTest.cs | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/mcs/class/Mono.Messaging/Test/Mono.Messaging/MessageBaseTest.cs b/mcs/class/Mono.Messaging/Test/Mono.Messaging/MessageBaseTest.cs index f6c89a3621e..65c44f7eb4a 100644 --- a/mcs/class/Mono.Messaging/Test/Mono.Messaging/MessageBaseTest.cs +++ b/mcs/class/Mono.Messaging/Test/Mono.Messaging/MessageBaseTest.cs @@ -52,8 +52,8 @@ namespace MonoTests.Mono.Messaging { "AdministrationQueue default should be null"); Assert.AreEqual (0, m.AppSpecific, "AppSpecific default should be 0"); Assert.AreEqual (true, m.AttachSenderId, "AttachSenderId default should be true"); - Assert.AreEqual ("", m.AuthenticationProviderName, - "AuthenticationProviderName should default to \"\""); + Assert.AreEqual ("Microsoft Base Cryptographic Provider, Ver. 1.0", m.AuthenticationProviderName, + "AuthenticationProviderName should default to \"Microsoft Base Cryptographic Provider, Ver. 1.0\""); Assert.AreEqual (System.Messaging.CryptographicProviderType.RsaFull, m.AuthenticationProviderType, "AuthenticationProviderType should default to RsaFull"); @@ -71,7 +71,7 @@ namespace MonoTests.Mono.Messaging { "Extension should default to an empty array"); Assert.AreEqual (System.Messaging.HashAlgorithm.Sha, m.HashAlgorithm, "HashAlgorithm should default to Sha"); - Assert.AreEqual (Guid.Empty.ToString (), m.Id, "Id should default to Guid.Empty"); + Assert.AreEqual (Guid.Empty.ToString () + "\\0", m.Id, "Id should default to Guid.Empty"); Assert.AreEqual ("", m.Label, "Label should default to \"\""); Assert.AreEqual (false, m.IsFirstInTransaction, "IsFirstInTransaction should default to false"); Assert.AreEqual (false, m.IsLastInTransaction, "IsLastInTransaction should default to false"); diff --git a/mcs/class/Mono.Messaging/Test/Mono.Messaging/QueueReferenceTest.cs b/mcs/class/Mono.Messaging/Test/Mono.Messaging/QueueReferenceTest.cs index f0fe0786ba5..442ad73ccff 100644 --- a/mcs/class/Mono.Messaging/Test/Mono.Messaging/QueueReferenceTest.cs +++ b/mcs/class/Mono.Messaging/Test/Mono.Messaging/QueueReferenceTest.cs @@ -55,10 +55,10 @@ namespace MonoTests.Mono.Messsaging Assert.AreEqual (3, s.Length, "Fail"); Assert.AreEqual (".", s[0], "Fail"); - QueueReference qr0 = QueueReference.Parse (@"\\host\$private\myqueue"); + QueueReference qr0 = QueueReference.Parse (@"\\host\private$\myqueue"); Assert.AreEqual ("host", qr0.Host); Assert.AreEqual (true, qr0.IsPrivate); - Assert.AreEqual ("myqueue", qr0.Queue); + Assert.AreEqual (@"private$\myqueue", qr0.Queue); QueueReference qr1 = QueueReference.Parse (@"\\host\myqueue"); Assert.AreEqual ("host", qr1.Host); @@ -66,7 +66,7 @@ namespace MonoTests.Mono.Messsaging Assert.AreEqual ("myqueue", qr1.Queue); QueueReference qr2 = QueueReference.Parse ("myqueue"); - Assert.AreEqual (QueueReference.LOCALHOST, qr2.Host); + Assert.AreEqual ("localhost", qr2.Host); Assert.AreEqual (false, qr2.IsPrivate); Assert.AreEqual ("myqueue", qr2.Queue); } |