示例#1
0
        public void ParseId(string comment, string expected)
        {
            // Act
            string actual = _parser.ParseId(comment);

            // Assert
            Assert.AreEqual(expected, actual);
        }
示例#2
0
        public void ParseId_CustomRegex(string regex, string comment, string expected)
        {
            // Assemble
            var parser = new CommitParser(new Settings {
                CardIdRegex = regex
            });

            // Act
            string actual = parser.ParseId(comment);

            // Assert
            Assert.AreEqual(expected, actual);
        }