Skip to content

Commit

Permalink
f Add conditional and return for the test
Browse files Browse the repository at this point in the history
  • Loading branch information
Fyzxs committed Dec 6, 2021
1 parent 4528404 commit d1f0f9c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions TddLikeYouMeanIt/FizzBuzzTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ public void Given305ReturnsFizzBuzz()

public string Transform(int source)
{
if (source == 30) return "FizzBuzz";
if (source == 15) return "FizzBuzz";
if (0 == source % 5) return "Buzz";
if (0 == source % 3) return "Fizz";
Expand Down

0 comments on commit d1f0f9c

Please sign in to comment.