Esempio n. 1
0
 public void arrayFront9()
 {
     Assert.AreEqual(true, exercises.ArrayFront9(new int[] { 1, 2, 9, 3, 4 }), "Input: {1, 2, 9, 3, 4} ");
     Assert.AreEqual(false, exercises.ArrayFront9(new int[] { 1, 2, 3, 4, 9 }), "Input: {1, 2, 3, 4, 9} ");
     Assert.AreEqual(false, exercises.ArrayFront9(new int[] { 1, 2, 3, 4, 5 }), "Input: {1, 2, 3, 4, 5} ");
     Assert.AreEqual(true, exercises.ArrayFront9(new int[] { 9, 2, 3 }), "Input: {9, 2, 3} ");
     Assert.AreEqual(true, exercises.ArrayFront9(new int[] { 1, 9, 9 }), "Input: {1, 9, 9} ");
     Assert.AreEqual(false, exercises.ArrayFront9(new int[] { 1, 2, 3 }), "Input: {1, 2, 3} ");
     Assert.AreEqual(true, exercises.ArrayFront9(new int[] { 1, 9 }), "Input: {1, 9} ");
     Assert.AreEqual(false, exercises.ArrayFront9(new int[] { 5, 5 }), "Input: {5, 5 } ");
     Assert.AreEqual(false, exercises.ArrayFront9(new int[] { 2 }), "Input: { 2 } ");
     Assert.AreEqual(true, exercises.ArrayFront9(new int[] { 9 }), "Input: { 9 } ");
     Assert.AreEqual(false, exercises.ArrayFront9(new int[] { }), "Input: { } ");
     Assert.AreEqual(true, exercises.ArrayFront9(new int[] { 3, 9, 2, 3, 3 }), "Input: { 3, 9, 2, 3, 3 } ");
 }