Binboo.Core.Tests.Tests.ApplicationTestCase.AssertPipingSplit C# (CSharp) Method

AssertPipingSplit() private static method

private static AssertPipingSplit ( string testCommandLine ) : void
testCommandLine string
return void
        private static void AssertPipingSplit(string testCommandLine)
        {
            var expected = Regex.Split(testCommandLine, "\\|@").Select(expectedItem => expectedItem.Trim());
            var actual = Application.CommandsFor(testCommandLine).Select(actualCmd => actualCmd.Replace("@ ", ""));

            CollectionAssert.AreEqual(expected, actual, expected.Aggregate("Expected: ",  (acc, curr) => acc + " / " + curr) + actual.Aggregate("\r\n    Actual: ", (acc, curr) => acc + " / " + curr) );
        }