コード例 #1
0
        public void LargestNumberInSeries_InvalidLimit1()
        {
            var problem = new Problem1();

            var result = problem.LargestNumberInSeries(10, 3);

            Assert.Fail();
        }
コード例 #2
0
        public void LargestNumberInSeries_After3rdTermBefore4th()
        {
            var problem = new Problem1();

            var result = problem.LargestNumberInSeries(5, 16);

            Assert.AreEqual(15, result);
        }
コード例 #3
0
        public void LargestNumberInSeries_InvalidMultiplier2()
        {
            var problem = new Problem1();

            var result = problem.LargestNumberInSeries(-9, 3);

            Assert.Fail();
        }
コード例 #4
0
        public void LargestNumberInSeries_2ndTerm()
        {
            var problem = new Problem1();

            var result = problem.LargestNumberInSeries(5, 10);

            Assert.AreEqual(10, result);
        }