public void RollDice(int a, int b, bool c, int expected) { // arrange Logic obj = new Logic(); // act int actual = obj.RollDice(a, b, c); // assert Assert.AreEqual(expected, actual); }
public void RollDiceTest(int die1, int die2, bool noDoubles, int expected) { Logic test = new Logic(); int actual = test.RollDice(die1, die2, noDoubles); Assert.AreEqual(expected, actual); }