public void ConcatTest()
        {
            int[] first  = new int[] { 0, 1, 2 };
            int[] second = new int[] { 3, 4, 5 };
            EnumerableAssert.AreSequentialEqual(
                Enumerable.Concat(first, second),
                EnumerableExtensions.Concat(first, second));

            first  = new int[] { };
            second = new int[] { 3, 4, 5 };
            EnumerableAssert.AreSequentialEqual(
                Enumerable.Concat(first, second),
                EnumerableExtensions.Concat(first, second));

            first  = new int[] { 0, 1, 2 };
            second = new int[] { };
            EnumerableAssert.AreSequentialEqual(
                Enumerable.Concat(first, second),
                EnumerableExtensions.Concat(first, second));
        }
Exemple #2
0
 public static object?[] EvalParameters(string paramString, DependencyObject target, object arg)
 {
     return(EnumerableExtensions.Concat(NamedParameters(paramString, target, arg), arg)
            .ToArray());
 }