コード例 #1
0
        public void ProcessListShouldNotContainTheseValues(int digit)
        {
            //Arrange
            ParseFizzBuzz fizzParser = new ParseFizzBuzz();

            //Act
            var response = fizzParser.Process(100);

            //Assert
            Assert.IsFalse(response.ContainsKey(digit));
        }
コード例 #2
0
        public void ProcessListReturnsMatches(int digit, string match)
        {
            //Arrange
            ParseFizzBuzz fizzParser = new ParseFizzBuzz();

            //Act
            var response = fizzParser.Process(100);

            //Assert
            Assert.AreEqual(match, response[digit]);
        }