/// <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; }
public void Table_Is_Not_Opened() { var table = new Table(9); Assert.Throws<InvalidOperationException>(() => new HandPlayEngine(table)); }