Created
May 13, 2017 21:03
-
-
Save Butter1484/4c65a8f9ef25a916b88fa1ed9e931680 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using NUnit.Framework; | |
using UnityEngine; | |
using System.Linq; | |
[TestFixture] | |
public class ScoreMasterTest { | |
[Test] | |
public void T22FullGameTest() | |
{ | |
int[] rolls = { 6, 4, 10, 2, 1, 4, 5, 3, 5, 3, 0, 2, 2, 5, 2, 10, 5, 2 }; | |
int[] totals = { 20, 33, 36, 45, 53, 56, 60, 67, 84, 91 }; | |
Assert.AreEqual(totals.ToList(), ScoreMaster.ScoreCumulative(rolls.ToList())); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment