コード例 #1
0
 public void ShowResultTest()
 {
     GameView target = new GameView(); // TODO: Initialize to an appropriate value
     Symbol coin = Symbol.Cross; // TODO: Initialize to an appropriate value
     target.ShowResult(coin);
     //Assert.Inconclusive("A method that does not return a value cannot be verified.");
 }
コード例 #2
0
 /// <summary>
 /// Default Constructor for GameManager Class
 /// </summary>
 public GameManager()
 {
     InitializeComponent();
     GmBoard = Board.createInstance(BoardSize);
     Logic = new ComputerMoveHandler(GmBoard, CoinCount);
     GView = new GameView();
 }
コード例 #3
0
 public void ShowInstructionTest()
 {
     GameView target = new GameView(); // TODO: Initialize to an appropriate value
     Label expected = new Label(); ;
     expected.Text= "1. Your Symbol is " + "O." + "\r\n" + "2. Computer's Symbol is " + "X." + "\r\n" + "3. Place your symbol during your turn." + "\r\n" + "4. You win by placing five of your coins either horizontally, vertically" + "\r\n" + "    or diagonally." + "\r\n"+ "5. Enjoy the game!!"; // TODO: Initialize to an appropriate value
     Label actual;
     actual = target.ShowInstruction();
     Assert.AreEqual(expected.Text, actual.Text);
     //Assert.Inconclusive("Verify the correctness of this test method.");
 }
コード例 #4
0
 public void GameViewConstructorTest()
 {
     GameView target = new GameView();
       //Assert.Inconclusive("TODO: Implement code to verify target");
 }