本文整理汇总了C#中Grid.showMessage方法的典型用法代码示例。如果您正苦于以下问题:C# Grid.showMessage方法的具体用法?C# Grid.showMessage怎么用?C# Grid.showMessage使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Grid
的用法示例。
在下文中一共展示了Grid.showMessage方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: When_Colors_is_Red_and_State_is_Win_print_message_in_screen
public void When_Colors_is_Red_and_State_is_Win_print_message_in_screen()
{
var grid = new Grid();
Assert.AreEqual(grid.showMessage(Grid.Colors.Red, Grid.States.Win), "(RED) - WINS!");
}
示例2: When_Colors_is_Yellow_and_State_is_Win_print_message_in_screen
public void When_Colors_is_Yellow_and_State_is_Win_print_message_in_screen()
{
var grid = new Grid();
Assert.AreEqual(grid.showMessage(Grid.Colors.Yellow, Grid.States.Win), "(YELLOW) - WINS!");
}
示例3: When_state_is_Select_Column_and_Color_is_Yellow_print_message_in_screen
public void When_state_is_Select_Column_and_Color_is_Yellow_print_message_in_screen()
{
var grid = new Grid();
Assert.AreEqual(grid.showMessage(Grid.Colors.Yellow, Grid.States.SelectAColumn), "(YELLOW) - Select a column [1-7]:");
}
示例4: When_state_select_columns_and_color_is_Red_print_message_in_screen
public void When_state_select_columns_and_color_is_Red_print_message_in_screen()
{
var grid = new Grid();
Assert.AreEqual(grid.showMessage(Grid.Colors.Red, Grid.States.SelectAColumn), "(RED) - Select a column [1-7]:");
}
示例5: When_state_is_OutOfRange_print_message_in_screen
public void When_state_is_OutOfRange_print_message_in_screen()
{
var grid = new Grid();
Assert.AreEqual(grid.showMessage(Grid.States.OutOfRange), "Please, write a number between 1 to 7");
}
示例6: When_state_is_InvalidCharacter_print_message_in_screen
public void When_state_is_InvalidCharacter_print_message_in_screen()
{
var grid = new Grid();
Assert.AreEqual(grid.showMessage(Grid.States.InvalidCharacter), "Invalid character. Please, write a number between 1 to 7");
}
示例7: When_state_is_FullGrid_print_message_in_screen
public void When_state_is_FullGrid_print_message_in_screen()
{
var grid = new Grid();
Assert.AreEqual(grid.showMessage(Grid.States.FullGrid), "The grid is full. Nobody wins.");
}
示例8: When_state_is_FullColumn_print_message_in_screen
public void When_state_is_FullColumn_print_message_in_screen()
{
var grid = new Grid();
Assert.AreEqual(grid.showMessage(Grid.States.FullColumn), "This column is full, try another column");
}
示例9: When_state_is_AwaitingYellow_print_message_in_screen
public void When_state_is_AwaitingYellow_print_message_in_screen()
{
var grid = new Grid();
Assert.AreEqual(grid.showMessage(Grid.States.AwaitingYellow), "Awaiting Yellow");
}