Example #1
0
    public void PlacePawnTest()
    {
        Board         b  = new Board(new Vector2Int(6, 6));
        PlayerMachine pm = new PlayerMachine("pete");

        //Run 200 tests to ensure it is always on an edge position
        for (int i = 0; i < 200; i++)
        {
            PlayerLocation pl = pm.PlacePawn(b);
            Assert.IsTrue(pl.IsEdgePosition(b.BoardSize), "Is correct edge position");
        }
    }