Skip to content

Commit

Permalink
T Add combination test of existing triangulation values
Browse files Browse the repository at this point in the history
  • Loading branch information
Fyzxs committed Dec 4, 2021
1 parent 32ef859 commit 7cbbabf
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion TddLikeYouMeanIt/FizzBuzzTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,28 @@ public void GivenInputReturnsStringOfInput()
//ASSERT
actual.Should().Be(expected);
}


[TestMethod]
public void GivenInputMultipleOf3ReturnsFizz()
{
//ARRANGE
Dictionary<int, string> regressionValues = new()
{
{ 1 * 3, "Fizz" },
{ 2 * 3, "Fizz" },
{ 4 * 3, "Fizz" }
};

(int sourceInput, string expected) =
regressionValues.ElementAt(new Random().Next(0, regressionValues.Count));

//ACT
string actual = Transform(sourceInput);

//ASSERT
actual.Should().Be(expected);
}

[TestMethod]
public void GivenInput3ReturnsFizz()
{
Expand Down

0 comments on commit 7cbbabf

Please sign in to comment.