public void JiraVersionMovePositioner_HasToBeMoved_WithInvalidVersionInList_ReturnsTrue() { var jiraProjectVersions = CreateSemanticJiraProjectVersions(null, "2.1.3"); var createdVersion = CreateSemanticVersion("2.1.0"); var jiraVersionMovePositioner = new JiraVersionPositionFinder <SemanticVersion> (jiraProjectVersions, createdVersion); Assert.That(jiraVersionMovePositioner.HasToBeMoved(), Is.True); }
public void JiraVersionMovePositioner_HasToBeMoved_WhenLowerVersionIsBefore_ReturnsFalse() { var jiraProjectVersions = CreateSemanticJiraProjectVersions("1.0.0"); var createdVersion = CreateSemanticVersion("1.0.1"); var jiraVersionMovePositioner = new JiraVersionPositionFinder <SemanticVersion> (jiraProjectVersions, createdVersion); Assert.That(jiraVersionMovePositioner.HasToBeMoved(), Is.False); }
public void JiraVersionMovePositioner_HasToBeMoved_OnEmptyList_ReturnsFalse() { var jiraProjectVersions = new List <JiraProjectVersionComparableAdapter <SemanticVersion> >(); var createdVersion = CreateSemanticVersion("1.0.0"); var jiraVersionMovePositioner = new JiraVersionPositionFinder <SemanticVersion> (jiraProjectVersions, createdVersion); Assert.That(jiraVersionMovePositioner.HasToBeMoved(), Is.False); }
public void JiraVersionMovePositioner_HasToBeMoved_GivenListNotInOrder_ReturnsTrue() { var jiraProjectVersions = CreateSemanticJiraProjectVersions("2.0.1", "1.9.3"); var createdVersion = CreateSemanticVersion("2.0.2"); var jiraVersionMovePositioner = new JiraVersionPositionFinder <SemanticVersion> (jiraProjectVersions, createdVersion); Assert.That(jiraVersionMovePositioner.HasToBeMoved(), Is.True); }
public void JiraVersionMovePositioner_HasToBeMoved_WithPrereleaseVersion_ReturnsTrue() { var jiraProjectVersions = CreateSemanticJiraProjectVersions("2.1.3", "2.2.0"); var createdVersion = CreateSemanticVersion("2.2.0-alpha.5"); var jiraVersionMovePositioner = new JiraVersionPositionFinder <SemanticVersion> (jiraProjectVersions, createdVersion); Assert.That(jiraVersionMovePositioner.HasToBeMoved(), Is.True); }