Skip to content

Commit

Permalink
r Use MultipleOf5 action
Browse files Browse the repository at this point in the history
  • Loading branch information
Fyzxs committed Dec 8, 2021
1 parent 4f209ae commit 5cc7fe4
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions TddLikeYouMeanIt/FizzBuzzTests.cs
Expand Up @@ -97,10 +97,9 @@ public Answer Transform(int source)
IRule multipleOfThreeAndFiveRule = new MultipleOfThreeAndFiveRule();
if (multipleOfThreeAndFiveRule.Matches(turnCount)) return new FizzBuzzAnswer();

IRule multipleOfFiveRule = new MultipleOfFiveRule();
if (multipleOfFiveRule.Matches(turnCount)) return new BuzzAnswer();

return new MultipleOfThree_RuleEvalAction(new Default_RuleEvalAction()).Act(turnCount);
return new MultipleOfFive_RuleEvalAction(
new MultipleOfThree_RuleEvalAction(
new Default_RuleEvalAction())).Act(turnCount);
}
}
}

0 comments on commit 5cc7fe4

Please sign in to comment.