本文整理汇总了C#中Grid.insertToken方法的典型用法代码示例。如果您正苦于以下问题:C# Grid.insertToken方法的具体用法?C# Grid.insertToken怎么用?C# Grid.insertToken使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Grid
的用法示例。
在下文中一共展示了Grid.insertToken方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: When_A_Smaller_Limit_Is_Inputed_A_Message_Is_Shown
public void When_A_Smaller_Limit_Is_Inputed_A_Message_Is_Shown()
{
var mock = Substitute.For<IPrinter>();
var grid = new Grid(mock);
grid.insertToken(-1, Grid.Colors.Red);
mock.Received().PrintLine("Please, write a number between 1 to 7");
}
示例2: 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));
}
示例3: 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));
}
示例4: 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));
}
示例5: 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));
}
示例6: 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));
}
示例7: Grid
public void When_I_put_one_yellow_token_in_the_first_row_Check_if_there_is_not_horizontal_combination_in_the_first_column()
{
var grid = new Grid();
grid.insertToken(0, Grid.Colors.Yellow);
Assert.IsFalse(grid.checkAnalyze(0, Grid.Direction.Horizontal, Grid.Colors.Yellow));
}