コード例 #1
0
        public void ReturnZang_WhenIsFactorOfSeven_AndOnlySeven(int num, string expectedResult)
        {
            _sut = new Raindrops(_userSettings);
            string result = _sut.Solve(num);

            Assert.That(result, Is.EqualTo(expectedResult));
        }
コード例 #2
0
        public void ReturnNumberAsString_WhenContains_NoFactors(int num)
        {
            _sut = new Raindrops(_userSettings);
            string result = _sut.Solve(num);

            Assert.That(result, Is.EqualTo(num.ToString()));
        }
コード例 #3
0
        public void ReturnCompoundString_WhenContains_MultipleFactors(int num, string expectedResult)
        {
            _sut = new Raindrops(_userSettings);
            string result = _sut.Solve(num);

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

            Assert.That(result, Is.EqualTo("0"));
        }
コード例 #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));
        }
コード例 #6
0
        public void ReturnCorrectString_WhenContaining_NoFactors(int num)
        {
            _sut = new Raindrops();
            string result = _sut.Solve(num);

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