Ejemplo n.º 1
0
        public void Crypto_Array_FirstOneFails()
        {
            // Arrange
            int[] n        = new int[] { 6, 5, 6, 7, 9, 8 };
            bool  expected = false;

            // Act
            bool result = Crypto_ArrayProblems.eachIntIsEqualOrGreaterThanPrecedent(n);

            // Assert
            Assert.AreEqual(expected, result);
        }
Ejemplo n.º 2
0
        public void Crypto_Array_SomeBadElement()
        {
            // Arrange
            int[] n        = new int[] { 1, 2, 3, 6, 5, 6, 8, 1000 };
            bool  expected = false;

            // Act
            bool result = Crypto_ArrayProblems.eachIntIsEqualOrGreaterThanPrecedent(n);

            // Assert
            Assert.AreEqual(expected, result);
        }
Ejemplo n.º 3
0
        public void Crypto_Array_5555()
        {
            // Arrange
            int[] n        = new int[] { 5, 5, 5, 5 };
            bool  expected = true;

            // Act
            bool result = Crypto_ArrayProblems.eachIntIsEqualOrGreaterThanPrecedent(n);

            // Assert
            Assert.AreEqual(expected, result);
        }
Ejemplo n.º 4
0
        public void Crypto_Array_MonotonicallyIncreasing()
        {
            // Arrange
            int[] n        = new int[] { 1, 2, 3, 4, 5, 6, 8, 1000 };
            bool  expected = true;

            // Act
            bool result = Crypto_ArrayProblems.eachIntIsEqualOrGreaterThanPrecedent(n);

            // Assert
            Assert.AreEqual(expected, result);
        }