Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions Telerik.JustMock/Core/MocksRepository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,14 @@ internal bool IsRetired
static MocksRepository()
{
#if FEATURE_LICENSING
if (!Licensing.LicenseManager.IsLicenseValid)
var message = string.Empty;
if (!Licensing.LicenseManager.ValidateLicense(ref message))
{
throw new Licensing.LicenseException(Licensing.LicenseManager.Message);
throw new Licensing.LicenseException(message);
}
else if (!string.IsNullOrEmpty(message))
{
System.Diagnostics.Trace.WriteLine(message);
}
#endif

Expand Down