public void ShouldReturnTrueWhenDiceHaveBeenRolled()
 {
     // Command + Query Combination Test due to Command RollDice wouldn't make a meaningful test on its own
     m_diceRolled = true;
     sut          = new DiceCup(m_diceCount, MockedDieFactory);
     sut.RollDice();
     Assert.True(sut.HasRolled);
 }
示例#2
0
 public async Task RollDiceAsync()
 {
     if (_cup == null)
     {
         throw new BasicBlankException("Cup cannot be null.  This means was never loaded.  Rethink");
     }
     var thisList = _cup.RollDice();
     await _cup.ShowRollingAsync(thisList, _saveRoot !.SameTable);
 }