public void GetProperSidesOfDefaultDie() { Assert.AreEqual(DiceSides.d4, Die.D4().Sides); Assert.AreEqual(DiceSides.d6, Die.D6().Sides); Assert.AreEqual(DiceSides.d8, Die.D8().Sides); Assert.AreEqual(DiceSides.d10, Die.D10().Sides); Assert.AreEqual(DiceSides.d12, Die.D12().Sides); Assert.AreEqual(DiceSides.d20, Die.D20().Sides); Assert.AreEqual(DiceSides.d100, Die.D100().Sides); }
public void D12ReturnsAllSideValues() { ValidateAllSides(Die.D12()); Assert.Pass(); }
public void CreateAnArrayOfDiceByPassingANumberIntoTheHelperMethod() { var diceArray = Die.GetDice(DiceSides.d12, 4); Assert.AreEqual(new Die[] { Die.D12(), Die.D12(), Die.D12(), Die.D12() }, diceArray); }