blob: 9142a0c2e2bc456e4e57a89597297898756f2c1a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
namespace DotNetOAuth.Test.Messaging.Reflection {
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using DotNetOAuth.Messaging.Reflection;
[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);
}
}
}
|