diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2009-12-15 22:17:20 -0800 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2009-12-15 22:17:20 -0800 |
commit | e12782c1a6727390b2107ff2e39d4ac6173d86fc (patch) | |
tree | 3be0ccda0a9425927263f5b6b9616ef8ba11ac08 /src/DotNetOpenId.Test/UI/TestSupportSanityTest.cs | |
parent | 078b1f350eb40ceee7423c25b1d833dd1f242da4 (diff) | |
parent | a545f7be2693596fa14540c359e43150a6a7cf88 (diff) | |
download | DotNetOpenAuth-origin/mono.zip DotNetOpenAuth-origin/mono.tar.gz DotNetOpenAuth-origin/mono.tar.bz2 |
Merge branch 'v2.5' into monoorigin/mono
Conflicts:
src/DotNetOpenId/Properties/AssemblyInfo.cs
src/DotNetOpenId/RelyingParty/AuthenticationResponse.cs
Diffstat (limited to 'src/DotNetOpenId.Test/UI/TestSupportSanityTest.cs')
-rw-r--r-- | src/DotNetOpenId.Test/UI/TestSupportSanityTest.cs | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/DotNetOpenId.Test/UI/TestSupportSanityTest.cs b/src/DotNetOpenId.Test/UI/TestSupportSanityTest.cs new file mode 100644 index 0000000..e84625b --- /dev/null +++ b/src/DotNetOpenId.Test/UI/TestSupportSanityTest.cs @@ -0,0 +1,32 @@ +using System;
+using System.Collections.Generic;
+using System.Text;
+using NUnit.Framework;
+using System.Net;
+using System.Globalization;
+using System.IO;
+using System.Diagnostics;
+using System.Text.RegularExpressions;
+
+namespace DotNetOpenId.Test.UI {
+ [TestFixture]
+ public class TestSupportSanityTest {
+ [Test]
+ public void TestHost() {
+ string query = "a=b&c=d";
+ string body = "aa=bb&cc=dd";
+ string resultHtml = UITestSupport.Host.ProcessRequest(TestSupport.HostTestPage + "?" + query, body);
+
+ Assert.IsFalse(string.IsNullOrEmpty(resultHtml));
+ Debug.WriteLine(resultHtml);
+ Assert.IsTrue(Regex.IsMatch(resultHtml, @"Query.*" + Regex.Escape(query)));
+ Assert.IsTrue(Regex.IsMatch(resultHtml, @"Body.*" + Regex.Escape(body)));
+ }
+
+ [Test]
+ public void TestProviderPage() {
+ string html = UITestSupport.Host.ProcessRequest(TestSupport.ProviderPage);
+ Assert.IsFalse(string.IsNullOrEmpty(html));
+ }
+ }
+}
|