Skip to content

Commit

Permalink
unit test fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
olibanjoli committed Oct 6, 2017
1 parent a63765c commit bded7c9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 19 deletions.
10 changes: 5 additions & 5 deletions source/Jobbr.Server.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
<iconUrl>https://raw.githubusercontent.com/jobbrIO/artwork/master/build/icons/icon_detailed_256_dark.png</iconUrl>
<copyright>Copyright 2017</copyright>
<dependencies>
<dependency id="Jobbr.ComponentModel.ArtefactStorage" version="[1.0.1]" />
<dependency id="Jobbr.ComponentModel.Execution" version="[1.0.1]" />
<dependency id="Jobbr.ComponentModel.JobStorage" version="[1.0.1]" />
<dependency id="Jobbr.ComponentModel.Management" version="[1.0.1]" />
<dependency id="Jobbr.ComponentModel.Registration" version="[1.0.1]" />
<dependency id="Jobbr.ComponentModel.ArtefactStorage" version="[1,1.1)" />
<dependency id="Jobbr.ComponentModel.Execution" version="[1,1.1)" />
<dependency id="Jobbr.ComponentModel.JobStorage" version="[1,1.1)" />
<dependency id="Jobbr.ComponentModel.Management" version="[1,1.1)" />
<dependency id="Jobbr.ComponentModel.Registration" version="[1,1.1)" />
</dependencies>
</metadata>
<files>
Expand Down
15 changes: 1 addition & 14 deletions source/Jobbr.Tests/PackagingTests.cs
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
using System.Reflection;
using Jobbr.DevSupport.ReferencedVersionAsserter;
using Jobbr.DevSupport.ReferencedVersionAsserter;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Jobbr.Tests
{
[TestClass]
public class PackagingTests
{
private readonly bool isPre = Assembly.GetExecutingAssembly().GetInformalVersion().Contains("-");

[TestMethod]
public void Feature_NuSpec_IsCompliant()
{
Expand All @@ -20,16 +17,6 @@ public void Feature_NuSpec_IsCompliant()
asserter.Add(new PackageExistsInBothRule("Jobbr.ComponentModel.Management"));
asserter.Add(new PackageExistsInBothRule("Jobbr.ComponentModel.Registration"));

if (this.isPre)
{
// This rule is only valid for Pre-Release versions because we only need exact match on PreRelease Versions
asserter.Add(new ExactVersionMatchRule("Jobbr.ComponentModel.*"));
}
else
{
asserter.Add(new AllowNonBreakingChangesRule("Jobbr.ComponentModel.*"));
}

asserter.Add(new VersionIsIncludedInRange("Jobbr.ComponentModel.*"));
asserter.Add(new NoMajorChangesInNuSpec("Jobbr.*"));

Expand Down

0 comments on commit bded7c9

Please sign in to comment.