Beispiel #1
0
        public void ShouldReturnFizzForModThree()
        {
            // arrange
            FizzBuzz1 fizzBuzz1 = new FizzBuzz1();

            // act
            string actual = fizzBuzz1.Evaluate(3);

            // assert
            actual.Should().Be("fizz");
        }
Beispiel #2
0
        public void ShouldReturnNumberAsString()
        {
            // arrange
            FizzBuzz1 fizzBuzz1 = new FizzBuzz1();
            const int expected  = 1;

            // act
            string actual = fizzBuzz1.Evaluate(expected);

            // assert
            actual.Should().Be(expected.ToString());
        }