public void TestChocolateFeastSolution(int totalDollars, int pricePerChocolate, int wrappersPerChocolate, int expectedResult) { // arrange Solutions.Implementation.ChocolateFeast.Solution feast = new Solutions.Implementation.ChocolateFeast.Solution(); // act int count = feast.FindNumberOfChocolates(totalDollars, pricePerChocolate, wrappersPerChocolate); // assert NUnit.Framework.Assert.AreEqual(count, expectedResult); }
public void TestChocolateFeastSolution(int totalDollars, int pricePerChocolate, int wrappersPerChocolate, int expectedResult) { // arrange Solutions.Implementation.ChocolateFeast.Solution feast = new Solutions.Implementation.ChocolateFeast.Solution(); // act int count = feast.FindNumberOfChocolates(totalDollars, pricePerChocolate, wrappersPerChocolate); // assert NUnit.Framework.Assert.AreEqual(count, expectedResult); }