Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed broken build

  • Loading branch information...
commit 30c9743630bc39450fc6c3683f5ffd93cb85157a 1 parent 8316392
@HEskandari HEskandari authored
View
10 Rhino.Licensing.Tests/Can_use_floating_licenses.cs
@@ -9,13 +9,15 @@ public class Can_use_floating_licenses : BaseLicenseTest
{
[Fact]
public void Can_generate_floating_license()
- {
- const string expected = @"<license-server-public-key>&lt;RSAKeyValue&gt;&lt;Modulus&gt;tOAa81fDkKAIcmBx5SybBQM34OG12Qsbm0V8H10Q5iL3bFIco1S6BFyKRK84LKitSPczY3z62imwNkanDVfXhnhl2UFTS0MTkhXM+yG9xFRGc3QwIcNE1j7UFAENo7RS1eguVQaYm26uaqgYXWHJn352CzddV7Lv4M3lAe6oh2M=&lt;/Modulus&gt;&lt;Exponent&gt;AQAB&lt;/Exponent&gt;&lt;/RSAKeyValue&gt;</license-server-public-key>
- <name>ayende</name>";
+ {
+ var server_public_key = @"<license-server-public-key>&lt;RSAKeyValue&gt;&lt;Modulus&gt;tOAa81fDkKAIcmBx5SybBQM34OG12Qsbm0V8H10Q5iL3bFIco1S6BFyKRK84LKitSPczY3z62imwNkanDVfXhnhl2UFTS0MTkhXM+yG9xFRGc3QwIcNE1j7UFAENo7RS1eguVQaYm26uaqgYXWHJn352CzddV7Lv4M3lAe6oh2M=&lt;/Modulus&gt;&lt;Exponent&gt;AQAB&lt;/Exponent&gt;&lt;/RSAKeyValue&gt;</license-server-public-key>";
+ var owner_name = "<name>ayende</name>";
var generator = new LicenseGenerator(public_and_private);
var license = generator.GenerateFloatingLicense("ayende", floating_public);
- Assert.Contains(expected, license);
+
+ Assert.Contains(server_public_key, license);
+ Assert.Contains(owner_name, license);
}
[Fact]
View
10 Rhino.Licensing.Tests/Can_use_subscription_license.cs
@@ -8,8 +8,7 @@ namespace Rhino.Licensing.Tests
{
public class Can_use_subscription_license : BaseLicenseTest
{
- private const string expected = @"<license id=""ffd0c62c-b953-403e-8457-e90f1085170d"" expiration=""2010-10-10T00:00:00.0000000"" type=""Subscription"" version=""2.0"">
- <name>ayende</name>";
+
[Fact]
public void Can_generate_subscription_license()
@@ -18,7 +17,12 @@ public void Can_generate_subscription_license()
var license = generator.Generate("ayende", new Guid("FFD0C62C-B953-403e-8457-E90F1085170D"),
new DateTime(2010, 10, 10),
new Dictionary<string, string> {{"version", "2.0"}}, LicenseType.Subscription);
- Assert.Contains(expected, license);
+
+ var license_header = @"<license id=""ffd0c62c-b953-403e-8457-e90f1085170d"" expiration=""2010-10-10T00:00:00.0000000"" type=""Subscription"" version=""2.0"">";
+ var owner_name = "<name>ayende</name>";
+
+ Assert.Contains(license_header, license);
+ Assert.Contains(owner_name, license);
}
[Fact]
Please sign in to comment.
Something went wrong with that request. Please try again.