Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit daf10ec

Browse files
committed
fix test
1 parent 5461319 commit daf10ec

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/ServiceStack.Text.Tests/LicensingTests.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,12 @@ public class LicensingTests
4141
const string TestTrial2016Text = "TRIAL302016-e1JlZjpUUklBTDMwMjAxNixOYW1lOlRyaWFsIFRlc3QsVHlwZTpUcmlhbCxIYXNoOkFSSThkVzlHZ210NWZGZ09MTytIRi9vQ29iOWgwN1c4bGxuNHZrUm9CQ2M5aysxVlh3WWJEd2Nxais3cHhFbEwrTkgwbGF2NXoyZGdJV1NndUpXYjZrUC9aQWdqNVIvMmlHamp4ZlduQjExOWY2WHgvRzFERmQ5cndJdjNMejhzR0V5RitNcGhlN3RTbEhJVlR4UjA1amI2SDFaZHlIYjNDNFExcTJaWEFzQT0sRXhwaXJ5OjIwMTYtMDEtMDF9";
4242
readonly LicenseKey TestTrial2016 = new LicenseKey { Ref = "TRIAL302016", Name = "Trial Test", Type = LicenseType.Trial, Expiry = new DateTime(2016, 01, 01) };
4343

44+
[SetUp]
45+
public void SetUp()
46+
{
47+
LicenseUtils.RemoveLicense();
48+
}
49+
4450
public static IEnumerable AllLicenseUseCases
4551
{
4652
get
@@ -153,6 +159,8 @@ public void Expired_licenses_throws_LicenseException()
153159
Assert.That(ex.Message, Does.StartWith("This license has expired"));
154160
}
155161

162+
LicenseUtils.RemoveLicense();
163+
156164
try
157165
{
158166
Licensing.RegisterLicense(TestBusiness2000Text);

0 commit comments

Comments
 (0)