public void 입력받은_2개의_배열을_비트연산_한다() { SecretMap map = new SecretMap(5); int[] arr1 = new int[] { 8, 18, 6, 24, 11 }; int[] arr2 = new int[] { 5, 22, 28, 17, 14 }; int[] arrTest = new int[5] { 13, 22, 30, 25, 15 }; int[] combineArray = map.CombineArray(arr1, arr2); CollectionAssert.AreEqual(arrTest, combineArray); }
public void 배열의_값을_비교하여_하나로_출력() { SecretMap map = new SecretMap(5); int[] arr1 = new int[] { 9, 20, 28, 18, 11 }; int[] arr2 = new int[] { 30, 1, 21, 17, 28 }; int[] arrTest = new int[5] { 31, 21, 29, 19, 31 }; int[] combineArray = map.CombineArray(arr1, arr2); CollectionAssert.AreEqual(arrTest, combineArray); }