Skip to content

Instantly share code, notes, and snippets.

@Butter1484
Created May 13, 2017 21:03
Show Gist options
  • Save Butter1484/4c65a8f9ef25a916b88fa1ed9e931680 to your computer and use it in GitHub Desktop.
Save Butter1484/4c65a8f9ef25a916b88fa1ed9e931680 to your computer and use it in GitHub Desktop.
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