public void ReturnZang_WhenIsFactorOfSeven_AndOnlySeven(int num, string expectedResult)
        {
            _sut = new Raindrops(_userSettings);
            string result = _sut.Solve(num);

            Assert.That(result, Is.EqualTo(expectedResult));
        }
        public void ReturnNumberAsString_WhenContains_NoFactors(int num)
        {
            _sut = new Raindrops(_userSettings);
            string result = _sut.Solve(num);

            Assert.That(result, Is.EqualTo(num.ToString()));
        }
        public void ReturnCompoundString_WhenContains_MultipleFactors(int num, string expectedResult)
        {
            _sut = new Raindrops(_userSettings);
            string result = _sut.Solve(num);

            Assert.That(result, Is.EqualTo(expectedResult));
        }
        public void ReturnZero_WhenInputIsZero()
        {
            _sut = new Raindrops(_userSettings);
            string result = _sut.Solve(0);

            Assert.That(result, Is.EqualTo("0"));
        }
Exemplo n.º 5
0
        public void ReturnPling_WhenIsFactorOfFive_AndOnlyFive(int num, string expectedResult)
        {
            _sut = new Raindrops();
            string result = _sut.Solve(num);

            Assert.That(result, Is.EqualTo(expectedResult));
        }
Exemplo n.º 6
0
        public void ReturnCorrectString_WhenContaining_NoFactors(int num)
        {
            _sut = new Raindrops();
            string result = _sut.Solve(num);

            Assert.That(result, Is.EqualTo(num.ToString()));
        }