Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added the SemVer compatibility logic
- Loading branch information
1 parent
36d7793
commit 56929b5
Showing
4 changed files
with
278 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,3 +54,4 @@ pkg | |
Gemfile.lock | ||
*.gem | ||
src/ApplicationLoaderService/loader | ||
.bundle |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
src/Bottles.Tests/Services/Remote/AssemblyRequirementTester.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
using Bottles.Services.Remote; | ||
using FubuTestingSupport; | ||
using NUnit.Framework; | ||
|
||
namespace Bottles.Services.Tests.Remote | ||
{ | ||
[TestFixture] | ||
public class AssemblyRequirementTester | ||
{ | ||
[Test] | ||
public void is_sem_ver_compatible() | ||
{ | ||
AssemblyRequirement.IsSemVerCompatible("1.0", "1.1").ShouldBeTrue(); | ||
AssemblyRequirement.IsSemVerCompatible("1.0", "1.2").ShouldBeTrue(); | ||
AssemblyRequirement.IsSemVerCompatible("1.0", "1.3").ShouldBeTrue(); | ||
AssemblyRequirement.IsSemVerCompatible("1.1", "1.3").ShouldBeTrue(); | ||
AssemblyRequirement.IsSemVerCompatible("1.2", "1.3").ShouldBeTrue(); | ||
AssemblyRequirement.IsSemVerCompatible("1.3", "1.3").ShouldBeTrue(); | ||
AssemblyRequirement.IsSemVerCompatible("1.0", "1.4").ShouldBeTrue(); | ||
AssemblyRequirement.IsSemVerCompatible("1.0", "2.0").ShouldBeFalse(); | ||
AssemblyRequirement.IsSemVerCompatible("1.1", "2.0").ShouldBeFalse(); | ||
AssemblyRequirement.IsSemVerCompatible("1.5", "2.0").ShouldBeFalse(); | ||
AssemblyRequirement.IsSemVerCompatible("1.5", "1.4").ShouldBeFalse(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters