コード例 #1
0
ファイル: HandPlayEngine.cs プロジェクト: Elgolfin/PokerBot
 /// <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;
 }
コード例 #2
0
 public void Table_Is_Not_Opened()
 {
     var table = new Table(9);
     Assert.Throws<InvalidOperationException>(() => new HandPlayEngine(table));
 }