summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenAuth.Test/OpenId/Messages/CheckIdRequestTests.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/DotNetOpenAuth.Test/OpenId/Messages/CheckIdRequestTests.cs')
-rw-r--r--src/DotNetOpenAuth.Test/OpenId/Messages/CheckIdRequestTests.cs54
1 files changed, 0 insertions, 54 deletions
diff --git a/src/DotNetOpenAuth.Test/OpenId/Messages/CheckIdRequestTests.cs b/src/DotNetOpenAuth.Test/OpenId/Messages/CheckIdRequestTests.cs
index 8824390..2c9ea12 100644
--- a/src/DotNetOpenAuth.Test/OpenId/Messages/CheckIdRequestTests.cs
+++ b/src/DotNetOpenAuth.Test/OpenId/Messages/CheckIdRequestTests.cs
@@ -16,63 +16,9 @@ namespace DotNetOpenAuth.Test.OpenId.Messages {
[TestClass]
public class CheckIdRequestTests : OpenIdTestBase {
- private Uri providerEndpoint;
- private CheckIdRequest immediatev1;
- private CheckIdRequest setupv1;
- private CheckIdRequest immediatev2;
- private CheckIdRequest setupv2;
-
[TestInitialize]
public override void SetUp() {
base.SetUp();
-
- this.providerEndpoint = new Uri("http://host");
-
- this.immediatev1 = new CheckIdRequest(Protocol.V11.Version, this.providerEndpoint, true);
- this.setupv1 = new CheckIdRequest(Protocol.V11.Version, this.providerEndpoint, false);
-
- this.immediatev2 = new CheckIdRequest(Protocol.V20.Version, this.providerEndpoint, true);
- this.setupv2 = new CheckIdRequest(Protocol.V20.Version, this.providerEndpoint, false);
-
- // Prepare all message versions so that they SHOULD be valid by default.
- // In particular, V1 messages require ReturnTo.
- this.immediatev1.ReturnTo = new Uri("http://returnto/");
- this.setupv1.ReturnTo = new Uri("http://returnto/");
-
- try {
- this.immediatev1.EnsureValidMessage();
- this.setupv1.EnsureValidMessage();
- this.immediatev2.EnsureValidMessage();
- this.setupv2.EnsureValidMessage();
- } catch (ProtocolException ex) {
- Assert.Inconclusive("All messages ought to be valid before tests run, but got: {0}", ex.Message);
- }
- }
-
- /// <summary>
- /// Verifies that the validation check throws if the return_to and the realm
- /// values are not compatible.
- /// </summary>
- /// <remarks>
- /// This test does not test all the realm-return_to matching rules as that is done in the Realm tests.
- /// This test merely checks that the compatibility match occurs at all.
- /// </remarks>
- [TestMethod, ExpectedException(typeof(ProtocolException))]
- public void RealmReturnToMismatchV2() {
- this.setupv2.Realm = "http://somehost/";
- this.setupv2.ReturnTo = new Uri("http://someotherhost/");
- this.setupv2.EnsureValidMessage();
- }
-
- /// <summary>
- /// Verifies that the validation check throws if the return_to and the realm
- /// values are not compatible.
- /// </summary>
- [TestMethod, ExpectedException(typeof(ProtocolException))]
- public void RealmReturnToMismatchV1() {
- this.setupv1.Realm = "http://somehost/";
- this.setupv1.ReturnTo = new Uri("http://someotherhost/");
- this.setupv1.EnsureValidMessage();
}
}
}