Пример #1
0
        public void MixList()
        {
            Problem2 p2 = new Problem2();
            var result = p2.MixList(basicArray1, basicArray2);

            if (expectedArray.Length != result.Length)
            {
                throw new Exception("Array differs in number of elements");
            }

            for (int i = 0; i < expectedArray.Length; i++)
            {
                Assert.AreEqual(expectedArray[i], result[i]);
            }
        }
Пример #2
0
 public void MixListException()
 {
     Problem2 p2 = new Problem2();
     var result = p2.MixList(new string[] { "1" }, basicArray2);
 }