public void ReturnsTrueForDevelopBranch() { var context = new Context { BranchName = "develop", Version = VersionParser.Parse("1.0.0-unstable0001") }; var rule = new DisplayVersionRule(); Assert.AreEqual("1.0.0-alpha0001", rule.GetParameter(context).Value); }
public void ReturnsFalseForMasterBranch() { var context = new Context { BranchName = "master", Version = VersionParser.Parse("1.0.0") }; var rule = new DisplayVersionRule(); Assert.AreEqual("1.0.0", rule.GetParameter(context).Value); }