public void TestMethodFail() { IMerge m = new MergeImpl(); int[] a = new[] { 1, 5, 7, 90 }; int[] b = new[] { 99999, 666 }; int[] test = new int[65]; Assert.IsFalse(test.Length == m.Merge(a, b).Length); }
public void TestMethodSuccess() { IMerge m = new MergeImpl(); int[] a = new[] { 1, 5, 7, 90 }; int[] b = new[] { 99999, 666 }; int[] test = new int[6]; Assert.IsTrue(test.Length == m.Merge(a, b).Length); }
public void TestClassSuccess() { IMerge m = new MergeImpl(); int[] a = new[] { 90, 7, 1, 5 }; int[] b = new[] { 99999, 666, 15, 60, 2, 2, 2 }; int[] test = new[] { 1, 2, 2, 2, 5, 7, 15, 60, 90, 666, 99999 }; var sorted = m.Merge(a, b); for (int i = 0; i < test.Length; i++) { Assert.IsTrue(test[i] == sorted[i]); } }