资 源 简 介
Please find the main solution for the Tic-Tac-Toe game, compile & run.
Click on any of the squares to play !
The solution demonstrates a MVVM architecture, indeed the rules of the game are in the TicTacToeService class.
This could be unit tested using a NUnit test class, as follows:
TestFixture
public class TicTacToeServiceTest
{
SetUp
public virtual void Setup()
{
// Do set up for tests
}
TearDown
public virtual void TearDown()
{
// Perform any clean up
}
//Write the unit tests, e.g.
Test
public void TestIsATie()
{
TicTacToeService service = new TicTacToeService();
Assert.AreEqual(service.isaTie(), false);
}