Beispiel #1
0
 public void array123()
 {
     Assert.AreEqual(true, exercises.Array123(new int[] { 1, 1, 2, 3, 1 }));
     Assert.AreEqual(false, exercises.Array123(new int[] { 1, 1, 2, 4, 1 }));
     Assert.AreEqual(true, exercises.Array123(new int[] { 1, 1, 2, 1, 2, 3 }));
     Assert.AreEqual(false, exercises.Array123(new int[] { 1, 1, 2, 1, 2, 1 }));
     Assert.AreEqual(true, exercises.Array123(new int[] { 1, 2, 3, 1, 2, 3 }));
     Assert.AreEqual(true, exercises.Array123(new int[] { 1, 2, 3 }));
     Assert.AreEqual(false, exercises.Array123(new int[] { 1, 1, 1 }));
     Assert.AreEqual(false, exercises.Array123(new int[] { 1, 2 }));
     Assert.AreEqual(false, exercises.Array123(new int[] { 1 }));
     Assert.AreEqual(false, exercises.Array123(new int[] { }));
 }