public void ShouldCreateZeroedVersionWhenNoCurrentPresent(string mask, string expected) { var resultVersion = SemanticVersionMask.ApplyMask(mask, null); var received = resultVersion.ToString(); Assert.That(received, Is.EqualTo(expected)); }
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)); }