Пример #1
0
        public void SeeIfReturnsFalseOnOtherNumbers()
        { // Makes sure it does not return true when divisable by three and five.
            var threeClass = new ThreeClass();

            var input = 5;

            var actualOutput = threeClass.IfDivisableByThree(input);

            Assert.AreEqual(false, actualOutput);
        }
Пример #2
0
        public void SeeWhatReturnsOnZero()
        { // Makes sure it does not return true when divisable by three and five.
            var threeClass = new ThreeClass();

            var input = -1;

            var actualOutput = threeClass.IfDivisableByThree(input);

            Assert.AreEqual(false, actualOutput);
        }
Пример #3
0
        public void SeeIfReturnsTrueOnCorrectNumbers()
        { // Checks to see if it returns true if number is divisable by three.
            var threeClass = new ThreeClass();

            var input = 3;

            var actualOutput = threeClass.IfDivisableByThree(input);

            Assert.AreEqual(true, actualOutput);
        }