当前位置: 首页>>代码示例>>C#>>正文


C# Grid.showMessage方法代码示例

本文整理汇总了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!");
 }
开发者ID:carlosdelsol,项目名称:Connect4,代码行数:5,代码来源:GridTests.cs

示例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!");
 }
开发者ID:carlosdelsol,项目名称:Connect4,代码行数:5,代码来源:GridTests.cs

示例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]:");
 }
开发者ID:carlosdelsol,项目名称:Connect4,代码行数:5,代码来源:GridTests.cs

示例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]:");
 }
开发者ID:carlosdelsol,项目名称:Connect4,代码行数:5,代码来源:GridTests.cs

示例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");
 }
开发者ID:carlosdelsol,项目名称:Connect4,代码行数:5,代码来源:GridTests.cs

示例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");
 }
开发者ID:carlosdelsol,项目名称:Connect4,代码行数:5,代码来源:GridTests.cs

示例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.");
 }
开发者ID:carlosdelsol,项目名称:Connect4,代码行数:5,代码来源:GridTests.cs

示例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");
 }
开发者ID:carlosdelsol,项目名称:Connect4,代码行数:5,代码来源:GridTests.cs

示例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");
 }
开发者ID:carlosdelsol,项目名称:Connect4,代码行数:5,代码来源:GridTests.cs


注:本文中的Grid.showMessage方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。