Skip to content

Commit

Permalink
Fixed a very annoying typo
Browse files Browse the repository at this point in the history
  • Loading branch information
stemarie committed Oct 10, 2012
1 parent c5f6a54 commit ecada43
Show file tree
Hide file tree
Showing 7 changed files with 160 additions and 159 deletions.
Expand Up @@ -110,6 +110,7 @@
<Compile Include="Dialogs\OpenFileDialogTests.cs" />
<Compile Include="Dialogs\SaveFileDialogTests.cs" />
<Compile Include="Models\LicenseModelTests.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Services\BoolToVisibilityConverterTests.cs" />
<Compile Include="Services\ExpirationDateConverterTests.cs" />
<Compile Include="Services\ExportServiceTests.cs" />
Expand All @@ -122,7 +123,6 @@
<Compile Include="Services\ProjectServiceTests.cs" />
<Compile Include="Startup\InstallersTests.cs" />
<Compile Include="ViewModels\AboutViewModelTests.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="ViewModels\DialogViewModelTests.cs" />
<Compile Include="ViewModels\IssueLicenseViewModelTests.cs" />
<Compile Include="ViewModels\ProjectViewModelTests.cs">
Expand Down
4 changes: 1 addition & 3 deletions Rhino.Licensing.AdminTool/Rhino.Licensing.AdminTool.csproj
Expand Up @@ -138,6 +138,7 @@
<Compile Include="Model\UserData.cs" />
<Compile Include="Model\Product.cs" />
<Compile Include="Model\Project.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Services\DialogService.cs" />
<Compile Include="Services\ExportService.cs" />
<Compile Include="Services\IDialogService.cs" />
Expand Down Expand Up @@ -190,9 +191,6 @@
</Compile>
</ItemGroup>
<ItemGroup>
<Compile Include="Properties\AssemblyInfo.cs">
<SubType>Code</SubType>
</Compile>
<AppDesigner Include="Properties\" />
</ItemGroup>
<ItemGroup>
Expand Down
33 changes: 18 additions & 15 deletions Rhino.Licensing.AdminTool/app.config
@@ -1,15 +1,18 @@
<?xml version="1.0"?>
<configuration>
<configSections>
<sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<section name="Rhino.Licensing.AdminTool.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false"/>
</sectionGroup>
</configSections>
<applicationSettings>
<Rhino.Licensing.AdminTool.Properties.Settings>
<setting name="DefaultTrialDays" serializeAs="String">
<value>30</value>
</setting>
</Rhino.Licensing.AdminTool.Properties.Settings>
</applicationSettings>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup></configuration>
<?xml version="1.0"?>
<configuration>
<configSections>
<sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<section name="Rhino.Licensing.AdminTool.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false"/>
</sectionGroup>
</configSections>
<applicationSettings>
<Rhino.Licensing.AdminTool.Properties.Settings>
<setting name="DefaultTrialDays" serializeAs="String">
<value>30</value>
</setting>
</Rhino.Licensing.AdminTool.Properties.Settings>
</applicationSettings>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
</startup>
</configuration>
2 changes: 1 addition & 1 deletion Rhino.Licensing.Tests/Can_use_floating_licenses.cs
Expand Up @@ -69,7 +69,7 @@ public void Can_only_get_license_per_allocated_licenses()
validator.AssertValidLicense();

var validator2 = new LicenseValidator(public_only, fileName, address, Guid.NewGuid());
Assert.Throws<FloatingLicenseNotAvialableException>(() => validator2.AssertValidLicense());
Assert.Throws<FloatingLicenseNotAvailableException>(() => validator2.AssertValidLicense());
}
finally
{
Expand Down
4 changes: 2 additions & 2 deletions Rhino.Licensing/AbstractLicenseValidator.cs
Expand Up @@ -455,7 +455,7 @@ private bool ValidateFloatingLicense(string publicKeyOfFloatingLicense)
if (leasedLicense == null)
{
Log.WarnFormat("Null response from license server: {0}", licenseServerUrl);
throw new FloatingLicenseNotAvialableException();
throw new FloatingLicenseNotAvailableException();
}

var doc = new XmlDocument();
Expand All @@ -464,7 +464,7 @@ private bool ValidateFloatingLicense(string publicKeyOfFloatingLicense)
if (TryGetValidDocument(publicKeyOfFloatingLicense, doc) == false)
{
Log.WarnFormat("Could not get valid license from floating license server {0}", licenseServerUrl);
throw new FloatingLicenseNotAvialableException();
throw new FloatingLicenseNotAvailableException();
}

var validLicense = ValidateXmlDocumentLicense(doc);
Expand Down
Expand Up @@ -6,40 +6,40 @@ namespace Rhino.Licensing
/// <summary>
///
/// </summary>
public class FloatingLicenseNotAvialableException : RhinoLicensingException
public class FloatingLicenseNotAvailableException : RhinoLicensingException
{
/// <summary>
/// Creates a new instance of <seealso cref="FloatingLicenseNotAvialableException"/>.
/// Creates a new instance of <seealso cref="FloatingLicenseNotAvailableException"/>.
/// </summary>
public FloatingLicenseNotAvialableException()
public FloatingLicenseNotAvailableException()
{
}

/// <summary>
/// Creates a new instance of <seealso cref="FloatingLicenseNotAvialableException"/>.
/// Creates a new instance of <seealso cref="FloatingLicenseNotAvailableException"/>.
/// </summary>
/// <param name="message">error message</param>
public FloatingLicenseNotAvialableException(string message)
public FloatingLicenseNotAvailableException(string message)
: base(message)
{
}

/// <summary>
/// Creates a new instance of <seealso cref="FloatingLicenseNotAvialableException"/>.
/// Creates a new instance of <seealso cref="FloatingLicenseNotAvailableException"/>.
/// </summary>
/// <param name="message">error message</param>
/// <param name="inner">inner exception</param>
public FloatingLicenseNotAvialableException(string message, Exception inner)
public FloatingLicenseNotAvailableException(string message, Exception inner)
: base(message, inner)
{
}

/// <summary>
/// Creates a new instance of <seealso cref="FloatingLicenseNotAvialableException"/>.
/// Creates a new instance of <seealso cref="FloatingLicenseNotAvailableException"/>.
/// </summary>
/// <param name="info">serialization information</param>
/// <param name="context">streaming context</param>
protected FloatingLicenseNotAvialableException(
protected FloatingLicenseNotAvailableException(
SerializationInfo info,
StreamingContext context)
: base(info, context)
Expand Down

0 comments on commit ecada43

Please sign in to comment.