예제 #1
0
        public void ShouldCreateZeroedVersionWhenNoCurrentPresent(string mask, string expected)
        {
            var resultVersion = SemanticVersionMask.ApplyMask(mask, null);
            var received      = resultVersion.ToString();

            Assert.That(received, Is.EqualTo(expected));
        }
예제 #2
0
        public void ShouldApplyMask(string mask, string current, string expected)
        {
            var currentVersion = SemanticVersion.Parse(current);
            var resultVersion  = SemanticVersionMask.ApplyMask(mask, currentVersion);
            var received       = resultVersion.ToString();

            Assert.That(received, Is.EqualTo(expected));
        }