本文整理汇总了C#中Grid.getCellStates方法的典型用法代码示例。如果您正苦于以下问题:C# Grid.getCellStates方法的具体用法?C# Grid.getCellStates怎么用?C# Grid.getCellStates使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Grid
的用法示例。
在下文中一共展示了Grid.getCellStates方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: When_I_put_a_seven_tokens_in_the_same_column_the_state_is_full
public void When_I_put_a_seven_tokens_in_the_same_column_the_state_is_full()
{
var grid = new Grid();
grid.insertToken(0, Grid.Colors.Red);
grid.insertToken(0, Grid.Colors.Red);
grid.insertToken(0, Grid.Colors.Red);
grid.insertToken(0, Grid.Colors.Red);
grid.insertToken(0, Grid.Colors.Red);
grid.insertToken(0, Grid.Colors.Red);
grid.insertToken(0, Grid.Colors.Red);
Assert.AreEqual(Grid.States.FullColumn, grid.getCellStates(0, 6));
}
示例2: When_I_put_a_red_token_in_first_column_second_row_is_empty
public void When_I_put_a_red_token_in_first_column_second_row_is_empty()
{
var grid = new Grid();
grid.insertToken(0, Grid.Colors.Red);
Assert.AreEqual(Grid.States.Empty, grid.getCellStates(0, 1));
}
示例3: When_I_put_yellow_token_in_the_left_column_left_cell_must_be_yellow
public void When_I_put_yellow_token_in_the_left_column_left_cell_must_be_yellow()
{
var grid = new Grid();
grid.insertToken(0, Grid.Colors.Yellow);
Assert.AreEqual(Grid.States.Yellow, grid.getCellStates(0, 0));
}
示例4: When_I_put_three_red_token_in_first_column_third_row_is_red
public void When_I_put_three_red_token_in_first_column_third_row_is_red()
{
var grid = new Grid();
grid.insertToken(0, Grid.Colors.Red);
grid.insertToken(0, Grid.Colors.Red);
grid.insertToken(0, Grid.Colors.Red);
Assert.AreEqual(Grid.States.Red, grid.getCellStates(0, 2));
}
示例5: When_I_put_red_token_in_the_left_column_the_bottom_of_the_second_column_must_be_empty
public void When_I_put_red_token_in_the_left_column_the_bottom_of_the_second_column_must_be_empty()
{
var grid = new Grid();
grid.insertToken(0, Grid.Colors.Red);
Assert.AreEqual(Grid.States.Empty, grid.getCellStates(1, 0));
}
示例6: On_a_new_grid_bottom_left_cell_must_be_empty
public void On_a_new_grid_bottom_left_cell_must_be_empty()
{
var grid = new Grid();
Assert.AreEqual(Grid.States.Empty, grid.getCellStates(0, 0));
}