Beispiel #1
0
 public void Help()
 {
     solution = solutionController.FindSolution().FirstOrDefault();
     if (ReferenceEquals(solution, null))
     {
         ResetHelper();
         return;
     }
     solution.atom1.mergeHelpDisplay.SetActive(true);
     solution.atom2.mergeHelpDisplay.SetActive(true);
 }
Beispiel #2
0
        public void TestMergeSolution()
        {
            int[] input1 = new int[] { 4, 5, 6, 0, 0, 0 };
            int[] input2 = new int[] { 1, 2, 3 };

            var output = new int[6] {
                1, 2, 3, 4, 5, 6
            };

            var sol = new MergeSolution();

            sol.Merge(input1, 3, input2, 3);

            CollectionAssert.Equals(output, input1);
        }