Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
        }