diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2008-11-03 17:22:00 -0800 |
---|---|---|
committer | Andrew <andrewarnott@gmail.com> | 2008-11-04 08:12:52 -0800 |
commit | 462e19abd9034c11a12cad30e9899740f2bef8ff (patch) | |
tree | e08667f1d69249f8daa6c348a919bd0fd5434415 /src/DotNetOpenAuth.Test/Messaging/Reflection/ValueMappingTests.cs | |
parent | 6a79be0eca3929d8fb4e797799dac8d6f7875475 (diff) | |
download | DotNetOpenAuth-462e19abd9034c11a12cad30e9899740f2bef8ff.zip DotNetOpenAuth-462e19abd9034c11a12cad30e9899740f2bef8ff.tar.gz DotNetOpenAuth-462e19abd9034c11a12cad30e9899740f2bef8ff.tar.bz2 |
Changed namepace and project names in preparation for merge with DotNetOpenId.
Diffstat (limited to 'src/DotNetOpenAuth.Test/Messaging/Reflection/ValueMappingTests.cs')
-rw-r--r-- | src/DotNetOpenAuth.Test/Messaging/Reflection/ValueMappingTests.cs | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/DotNetOpenAuth.Test/Messaging/Reflection/ValueMappingTests.cs b/src/DotNetOpenAuth.Test/Messaging/Reflection/ValueMappingTests.cs new file mode 100644 index 0000000..c4a79b5 --- /dev/null +++ b/src/DotNetOpenAuth.Test/Messaging/Reflection/ValueMappingTests.cs @@ -0,0 +1,24 @@ +//----------------------------------------------------------------------- +// <copyright file="ValueMappingTests.cs" company="Andrew Arnott"> +// Copyright (c) Andrew Arnott. All rights reserved. +// </copyright> +//----------------------------------------------------------------------- + +namespace DotNetOpenAuth.Test.Messaging.Reflection { + using System; + using DotNetOpenAuth.Messaging.Reflection; + using Microsoft.VisualStudio.TestTools.UnitTesting; + + [TestClass] + public class ValueMappingTests { + [TestMethod, ExpectedException(typeof(ArgumentNullException))] + public void CtorNullToString() { + new ValueMapping(null, str => new object()); + } + + [TestMethod, ExpectedException(typeof(ArgumentNullException))] + public void CtorNullToObject() { + new ValueMapping(obj => obj.ToString(), null); + } + } +} |