Exemplo n.º 1
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="table">Must have been opened</param>
 public HandPlayEngine(Table table)
 {
     if (!table.IsOpened)
     {
         throw new InvalidOperationException("The table must have been properly opened.");
     }
     Table = table;
 }
Exemplo n.º 2
0
 public void Table_Is_Not_Opened()
 {
     var table = new Table(9);
     Assert.Throws<InvalidOperationException>(() => new HandPlayEngine(table));
 }