diff options
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); + } + } +} |