Ejemplo n.º 1
0
        public void Result_1and3()
        {
            SmallestMultiple sm = new SmallestMultiple(1, 3);

            var result = sm.Result();

            Assert.That(result, Is.EqualTo(6));
        }
Ejemplo n.º 2
0
        public void Result_1ToN_Correct(
            [Values(2, 3, 4, 5, 7, 9, 10, 11, 20)] int high,
            [Values(2, 6, 12, 60, 420, 2520, 2520, 27720, 232792560)] int expectedResult
            )
        {
            SmallestMultiple sm = new SmallestMultiple(1, high);

            var result = sm.Result();

            Assert.That(result, Is.EqualTo(expectedResult));
        }