コード例 #1
0
        public void ReturnsTrueForMasterBranch()
        {
            var context = new Context
            {
                BranchName = "master"
            };
            var rule = new IsOfficialBuildRule();

            Assert.AreEqual("True", rule.GetParameter(context).Value);
        }
コード例 #2
0
        public void ReturnsFalseForDevelopBranch()
        {
            var context = new Context
            {
                BranchName = "develop"
            };
            var rule = new IsOfficialBuildRule();

            Assert.AreEqual("False", rule.GetParameter(context).Value);
        }