예제 #1
0
        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();
 }
예제 #3
0
 public void SetUp()
 {
     OrmLiteConfig.ClearCache();
     LicenseUtils.RemoveLicense();
     JsConfig.Reset();
 }
예제 #4
0
 public override void OnConfigLoad()
 {
     base.OnConfigLoad();
     LicenseUtils.RemoveLicense();
 }
예제 #5
0
 public void SetUp()
 {
     LicenseUtils.RemoveLicense();
 }
 protected override void OnBeforeInit()
 {
     base.OnBeforeInit();
     LicenseUtils.RemoveLicense();
 }