Esempio n. 1
0
        public void CalculateFibonacci_CanOuput()
        {
            var co     = new CareOregonTest.Program();
            var result = co.CalculateFibonacci(3);

            Assert.IsTrue(result > 0, "Result not greater than zero");
        }
Esempio n. 2
0
        public void CalculateFibonacci_CanOuput_Positions_40()
        {
            var co     = new CareOregonTest.Program();
            var result = co.CalculateFibonacci(40);

            Assert.IsTrue(result > 0, "Result not greater than zero");
            Assert.AreEqual(165580141, result, "Result for position 40 is " + result + " and should be 165580141");
        }
Esempio n. 3
0
        public void CalculateFibonacci_CanOuput_Position_10()
        {
            var co     = new CareOregonTest.Program();
            var result = co.CalculateFibonacci(10);

            Assert.IsTrue(result > 0, "Result not greater than zero");
            Assert.AreEqual(89, result, "Result for position 10 is " + result + " and should be 89");
        }