public void ParseId(string comment, string expected) { // Act string actual = _parser.ParseId(comment); // Assert Assert.AreEqual(expected, actual); }
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); }