Binboo.Jira.Tests.Tests.Commands.PairCommandTestCase.AssertPairsAreValid C# (CSharp) Method

AssertPairsAreValid() private static method

private static AssertPairsAreValid ( string expectedMessageRegExp, ICommandResult actual ) : void
expectedMessageRegExp string
actual ICommandResult
return void
        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));
        }