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

            bool actual = obj.HasEven(numbers);

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

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

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

            bool actual = obj.Double23(numbers);

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

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

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

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

            Assert.AreEqual(expected, actual);
        }
Example #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);
        }
Example #7
0
 public void SameFirstLast(int[] numbers, bool expected)
 {
     Arrays obj = new Arrays();
     bool actual = obj.SameFirstLast(numbers);
     Assert.AreEqual(expected, actual);
 }
Example #8
0
 public void Reverse(int[] a, int[] expected)
 {
     Arrays obj = new Arrays();
     int[] actual = obj.Reverse(a);
     Assert.AreEqual(expected, actual);
 }
Example #9
0
 public void RotateLeft(int[] a, int[] expected)
 {
     Arrays obj = new Arrays();
     int[] actual = obj.RotateLeft(a);
     Assert.AreEqual(expected, actual);
 }
Example #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);
 }
Example #11
0
 public void MakePi(int a, int[] expected)
 {
     Arrays obj = new Arrays();
     int[] actual = obj.MakePi(a);
     Assert.AreEqual(expected, actual);
 }
Example #12
0
 public void HigherWins(int[] a, int[] expected)
 {
     Arrays obj = new Arrays();
     int[] actual = obj.HigherWins(a);
     Assert.AreEqual(expected, actual);
 }
Example #13
0
 public void Sum(int[] numbers, int expected)
 {
     Arrays test = new Arrays();
     int actual = test.sum(numbers);
     Assert.AreEqual(expected, actual);
 }
Example #14
0
 public void reverseTest(int[] numbers, int[] expected)
 {
     Arrays test = new Arrays();
     int[] actual = test.Reverse(numbers);
     Assert.AreEqual(expected, actual);
 }
Example #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);
 }
Example #16
0
 public void Fix23test(int[] numbers, int[] expected)
 {
     Arrays test = new Arrays();
     int[] actual = test.Fix23(numbers);
     Assert.AreEqual(expected, actual);
 }
Example #17
0
 public void HigherwinsTest(int[] numbers, int[] expected)
 {
     Arrays test = new Arrays();
     int[] actual = test.HigherWins(numbers);
     Assert.AreEqual(expected, actual);
 }
Example #18
0
 public void Double23Test(int[] numbers, bool expected)
 {
     Arrays test = new Arrays();
     bool actual = test.Double23(numbers);
     Assert.AreEqual(expected, actual);
 }
Example #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);
 }
Example #20
0
 public void Unlucky1test(int[] numbers, bool expected)
 {
     Arrays test = new Arrays();
     bool actual = test.Unlucky1(numbers);
     Assert.AreEqual(expected, actual);
 }
Example #21
0
 public void Sum(int[] numbers, int expected)
 {
     Arrays obj = new Arrays();
     int actual = obj.Sum(numbers);
     Assert.AreEqual(expected, actual);
 }
Example #22
0
 public void MakePiTest(int n, int[] expected)
 {
     Arrays test = new Arrays();
     int[] actual = test.MakePi(n);
     Assert.AreEqual(expected, actual);
 }
Example #23
0
 public void Unlucky1(int[] numbers, bool expected)
 {
     Arrays obj = new Arrays();
     bool actual = obj.Unlucky1(numbers);
     Assert.AreEqual(expected, actual);
 }
Example #24
0
 public void KeepLast(int[] a, int[] expected)
 {
     Arrays obj = new Arrays();
     int[] actual = obj.KeepLast(a);
     Assert.AreEqual(expected, actual);
 }
Example #25
0
 public void KeepLastTest(int[] numbers, int[] expected)
 {
     Arrays test = new Arrays();
     int[] actual = test.KeepLast(numbers);
     Assert.AreEqual(expected, actual);
 }
Example #26
0
 public void rotateLeftTest(int[] numbers, int[] expected)
 {
     Arrays test = new Arrays();
     int[] actual = test.RotateLeft(numbers);
     Assert.AreEqual(expected, actual);
 }