Permalink
Browse files

Fixed tests

  • Loading branch information...
1 parent 21ce796 commit 57c4b72f6dca83f993516f44ec1d2eb8a1ab5c62 @brunomlopes brunomlopes committed Feb 24, 2011
Showing with 7 additions and 7 deletions.
  1. +7 −7 Rhino.Licensing.Tests/Can_use_subscription_license.cs
@@ -71,10 +71,10 @@ public void Cannot_validate_expired_subscription_license_when_url_is_not_availab
var path = Path.GetTempFileName();
- File.WriteAllText(path, license);
-
-
- Assert.Throws<LicenseNotFoundException>(() => new LicenseValidator(public_only, path)
+ File.WriteAllText(path, license);
+
+
+ Assert.Throws<LicenseExpiredException>(() => new LicenseValidator(public_only, path)
{
SubscriptionEndpoint = "http://localhost/" + Guid.NewGuid()
}.AssertValidLicense());
@@ -123,9 +123,9 @@ public void Can_validate_expired_subscription_license_when_service_returns_old_o
const string address = "http://localhost:19292/license";
host.AddServiceEndpoint(typeof(ISubscriptionLicensingService), new BasicHttpBinding(), address);
- host.Open();
-
- Assert.Throws<LicenseNotFoundException>(() => new LicenseValidator(public_only, path)
+ host.Open();
+
+ Assert.Throws<LicenseExpiredException>(() => new LicenseValidator(public_only, path)
{
SubscriptionEndpoint = address
}.AssertValidLicense());

0 comments on commit 57c4b72

Please sign in to comment.