summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenAuth.Test/Messaging/Reflection
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2010-02-21 20:12:26 -0800
committerAndrew Arnott <andrewarnott@gmail.com>2010-02-22 08:39:07 -0800
commit8fdaf48c3a7ee9a9215124d643368e0974829a79 (patch)
treea109c5c340cb8c83cf844cc730388a948c651572 /src/DotNetOpenAuth.Test/Messaging/Reflection
parent88d6d29b84ba0d8e522fd46377a859cee604301f (diff)
downloadDotNetOpenAuth-8fdaf48c3a7ee9a9215124d643368e0974829a79.zip
DotNetOpenAuth-8fdaf48c3a7ee9a9215124d643368e0974829a79.tar.gz
DotNetOpenAuth-8fdaf48c3a7ee9a9215124d643368e0974829a79.tar.bz2
Added early version of StandardMessageFactory.
Diffstat (limited to 'src/DotNetOpenAuth.Test/Messaging/Reflection')
-rw-r--r--src/DotNetOpenAuth.Test/Messaging/Reflection/MessageDescriptionTests.cs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/DotNetOpenAuth.Test/Messaging/Reflection/MessageDescriptionTests.cs b/src/DotNetOpenAuth.Test/Messaging/Reflection/MessageDescriptionTests.cs
index e57df65..92f39cc 100644
--- a/src/DotNetOpenAuth.Test/Messaging/Reflection/MessageDescriptionTests.cs
+++ b/src/DotNetOpenAuth.Test/Messaging/Reflection/MessageDescriptionTests.cs
@@ -73,6 +73,16 @@ namespace DotNetOpenAuth.Test.Messaging.Reflection {
Assert.IsTrue(v30.Mapping["OptionalIn10RequiredIn25AndLater"].IsRequired);
}
+ /// <summary>
+ /// Verifies that the constructors cache is properly initialized.
+ /// </summary>
+ [TestCase]
+ public void CtorsCache() {
+ var message = new MessageDescription(typeof(MultiVersionMessage), new Version(1, 0));
+ Assert.IsNotNull(message.Constructors);
+ Assert.AreEqual(1, message.Constructors.Length);
+ }
+
private class MultiVersionMessage : Mocks.TestBaseMessage {
#pragma warning disable 0649 // these fields are never written to, but part of the test
[MessagePart]