Example #1
0
 public void TestMethod3()
 {
     Assert.AreEqual(1100, GreedIsGood.Score(new int[] { 6, 5, 6, 6, 5 }), "Should be 450");
 }
Example #2
0
 public void TestMethod1()
 {
     Assert.AreEqual(0, GreedIsGood.Score(new int[] { 2, 3, 4, 6, 2 }), "Should be 0 :-(");
 }
Example #3
0
 public void TestMethod2()
 {
     Assert.AreEqual(400, GreedIsGood.Score(new int[] { 4, 4, 4, 3, 3 }), "Should be 400");
 }
Example #4
0
        public static void GenericScoreCheck(int[] dices, int expected)
        {
            var score = GreedIsGood.Score(dices);

            Assert.AreEqual(expected, score, $"Should be {expected}, but was {score}");
        }
 public void CalculateScoreTest3()
 {
     Assert.AreEqual(450, GreedIsGood.CalculateScore(new int[] { 2, 4, 4, 5, 4 }));
 }
 public void CalculateScoreTest2()
 {
     Assert.AreEqual(400, GreedIsGood.CalculateScore(new int[] { 4, 4, 4, 3, 3 }));
 }
 public void CalculateScoreTest1()
 {
     Assert.AreEqual(0, GreedIsGood.CalculateScore(new int[] { 2, 3, 4, 6, 2 }));
 }