Skip to content

Instantly share code, notes, and snippets.

@BenTristem
Created May 12, 2015 09:33
Show Gist options
  • Save BenTristem/958250aab975526adda8 to your computer and use it in GitHub Desktop.
Save BenTristem/958250aab975526adda8 to your computer and use it in GitHub Desktop.
www.CompleteUnityDeveloper.com - Bowlmaster test code
[Test]
public void Dondi10thFrameTurkey () {
int[] rolls = {1,1, 1,1, 1,1, 1,1, 1,1, 1,1, 1,1, 1,1, 1,1};
foreach (int roll in rolls) {
actionMaster.Bowl (roll);
}
Assert.AreEqual (reset, actionMaster.Bowl (10));
Assert.AreEqual (reset, actionMaster.Bowl (10));
Assert.AreEqual (endGame, actionMaster.Bowl (10));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment