コード例 #1
0
        public void NextPatchVersion_ShouldIncreasePatch()
        {
            var version = new SemanticVersion(1, 0, 1);

            Assert.Equal(new SemanticVersion(1, 0, 2), version.NextPatchVersion());
        }
コード例 #2
0
        public void NextPatchVersion_ShouldRemovePrereleaseTag()
        {
            var version = new SemanticVersion(1, 0, 0, "test");

            Assert.Equal(new SemanticVersion(1, 0, 0), version.NextPatchVersion());
        }