private static void AssertPairsAreValid(string expectedMessageRegExp, ICommandResult actual) { MatchCollection matches = Regex.Matches(actual.HumanReadable, expectedMessageRegExp); CollectionAssert.AreEquivalent(JiraConfig.Instance.PairingUsers.Select(userName => FirstUsableName(userName)), DevNamesFrom(matches[0].Groups)); }