예제 #1
0
        public void Silnia_recurent_calculate()
        {
            int x      = 5;
            int result = 120;

            var recurentValue = Silnia.RekurentCalculateSilnia(x);

            Assert.AreEqual(recurentValue, result);
        }
예제 #2
0
        public void Silnia_value_is_equal_0()
        {
            int x             = 0;
            var normalValue   = Silnia.NormalCalculateSilnia(x);
            var recurentValue = Silnia.RekurentCalculateSilnia(x);

            Assert.AreEqual(normalValue, recurentValue);
            Assert.AreEqual(normalValue, 1);
        }