summaryrefslogtreecommitdiffstats
path: root/src/DotNetOAuth.Test/Messaging/Reflection/MessageDescriptionTests.cs
blob: 04c1df8bcb406428470f151b6d79953ed08c21cd (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 MessageDescriptionTests : MessagingTestBase {
		[TestMethod, ExpectedException(typeof(ArgumentNullException))]
		public void GetNull() {
			MessageDescription.Get(null);
		}

		[TestMethod, ExpectedException(typeof(ArgumentException))]
		public void GetNonMessageType() {
			MessageDescription.Get(typeof(string));
		}
	}
}