public void HasEven(int[] numbers, bool expected)
        {
            Arrays obj = new Arrays();

            bool actual = obj.HasEven(numbers);

            Assert.AreEqual(expected, actual);
        }
        public void GetMiddle(int[] a, int[] b, int[] expected)
        {
            Arrays obj = new Arrays();

            int[] actual = obj.GetMiddle(a, b);

            Assert.AreEqual(expected, actual);
        }
        public void Double23(int[] numbers, bool expected)
        {
            Arrays obj = new Arrays();

            bool actual = obj.Double23(numbers);

            Assert.AreEqual(expected, actual);
        }
        public void Fix23(int[] numbers, int[] expected)
        {
            Arrays obj = new Arrays();

            int[] actual = obj.Fix23(numbers);

            Assert.AreEqual(expected, actual);
        }
        public void commonEnd(int[] a, int[] b, bool expected)
        {
            Arrays obj = new Arrays();

            bool actual = obj.commonEnd(a, b);

            Assert.AreEqual(expected, actual);
        }
Exemple #6
0
        public void FirstLast6Test(int[] numbers, bool expected)
        {
            // arrange
            Arrays obj = new Arrays();

            // act
            bool actual = obj.FirstLast6(numbers);

            // assert
            Assert.AreEqual(expected, actual);
        }
Exemple #7
0
 public void SameFirstLast(int[] numbers, bool expected)
 {
     Arrays obj = new Arrays();
     bool actual = obj.SameFirstLast(numbers);
     Assert.AreEqual(expected, actual);
 }
Exemple #8
0
 public void Reverse(int[] a, int[] expected)
 {
     Arrays obj = new Arrays();
     int[] actual = obj.Reverse(a);
     Assert.AreEqual(expected, actual);
 }
Exemple #9
0
 public void RotateLeft(int[] a, int[] expected)
 {
     Arrays obj = new Arrays();
     int[] actual = obj.RotateLeft(a);
     Assert.AreEqual(expected, actual);
 }
Exemple #10
0
 public void Make2(int[] a, int[] b, int[] expected)
 {
     Arrays obj = new Arrays();
     int[] actual = obj.Make2(a, b);
     Assert.AreEqual(expected, actual);
 }
Exemple #11
0
 public void MakePi(int a, int[] expected)
 {
     Arrays obj = new Arrays();
     int[] actual = obj.MakePi(a);
     Assert.AreEqual(expected, actual);
 }
Exemple #12
0
 public void HigherWins(int[] a, int[] expected)
 {
     Arrays obj = new Arrays();
     int[] actual = obj.HigherWins(a);
     Assert.AreEqual(expected, actual);
 }
Exemple #13
0
 public void Sum(int[] numbers, int expected)
 {
     Arrays test = new Arrays();
     int actual = test.sum(numbers);
     Assert.AreEqual(expected, actual);
 }
Exemple #14
0
 public void reverseTest(int[] numbers, int[] expected)
 {
     Arrays test = new Arrays();
     int[] actual = test.Reverse(numbers);
     Assert.AreEqual(expected, actual);
 }
Exemple #15
0
 public void make2test(int[] a, int[] b, int[] expected)
 {
     Arrays test = new Arrays();
     int[] actual = test.make2(a,b);
     Assert.AreEqual(expected, actual);
 }
Exemple #16
0
 public void Fix23test(int[] numbers, int[] expected)
 {
     Arrays test = new Arrays();
     int[] actual = test.Fix23(numbers);
     Assert.AreEqual(expected, actual);
 }
Exemple #17
0
 public void HigherwinsTest(int[] numbers, int[] expected)
 {
     Arrays test = new Arrays();
     int[] actual = test.HigherWins(numbers);
     Assert.AreEqual(expected, actual);
 }
Exemple #18
0
 public void Double23Test(int[] numbers, bool expected)
 {
     Arrays test = new Arrays();
     bool actual = test.Double23(numbers);
     Assert.AreEqual(expected, actual);
 }
Exemple #19
0
 public void commonEndTest(int[] a, int[] b, bool expected)
 {
     Arrays test = new Arrays();
     bool actual = test.CommonEnd(a,b);
     Assert.AreEqual(expected, actual);
 }
Exemple #20
0
 public void Unlucky1test(int[] numbers, bool expected)
 {
     Arrays test = new Arrays();
     bool actual = test.Unlucky1(numbers);
     Assert.AreEqual(expected, actual);
 }
Exemple #21
0
 public void Sum(int[] numbers, int expected)
 {
     Arrays obj = new Arrays();
     int actual = obj.Sum(numbers);
     Assert.AreEqual(expected, actual);
 }
Exemple #22
0
 public void MakePiTest(int n, int[] expected)
 {
     Arrays test = new Arrays();
     int[] actual = test.MakePi(n);
     Assert.AreEqual(expected, actual);
 }
Exemple #23
0
 public void Unlucky1(int[] numbers, bool expected)
 {
     Arrays obj = new Arrays();
     bool actual = obj.Unlucky1(numbers);
     Assert.AreEqual(expected, actual);
 }
Exemple #24
0
 public void KeepLast(int[] a, int[] expected)
 {
     Arrays obj = new Arrays();
     int[] actual = obj.KeepLast(a);
     Assert.AreEqual(expected, actual);
 }
Exemple #25
0
 public void KeepLastTest(int[] numbers, int[] expected)
 {
     Arrays test = new Arrays();
     int[] actual = test.KeepLast(numbers);
     Assert.AreEqual(expected, actual);
 }
Exemple #26
0
 public void rotateLeftTest(int[] numbers, int[] expected)
 {
     Arrays test = new Arrays();
     int[] actual = test.RotateLeft(numbers);
     Assert.AreEqual(expected, actual);
 }