public void Expired_licenses_throws_LicenseException() { try { Licensing.RegisterLicense(TestBusiness2000Text); Assert.Fail("Should throw Expired LicenseException"); } catch (LicenseException ex) { ex.Message.Print(); Assert.That(ex.Message, Does.StartWith("This license has expired")); } LicenseUtils.RemoveLicense(); try { Licensing.RegisterLicense(TestBusiness2000Text); Assert.Fail("Should throw Expired LicenseException"); } catch (LicenseException ex) { ex.Message.Print(); Assert.That(ex.Message, Does.StartWith("This license has expired")); } try { Licensing.RegisterLicense(TestTrial2001Text); Assert.Fail("Should throw Expired LicenseException"); } catch (LicenseException ex) { ex.Message.Print(); Assert.That(ex.Message, Does.StartWith("This trial license has expired") .Or.StartWith("This license has expired")); } }
public void SetUp() { LicenseUtils.RemoveLicense(); JsConfig.Reset(); }
public void SetUp() { OrmLiteConfig.ClearCache(); LicenseUtils.RemoveLicense(); JsConfig.Reset(); }
public override void OnConfigLoad() { base.OnConfigLoad(); LicenseUtils.RemoveLicense(); }
public void SetUp() { LicenseUtils.RemoveLicense(); }
protected override void OnBeforeInit() { base.OnBeforeInit(); LicenseUtils.RemoveLicense(); }