public void SetUp()
        {
            string[] names = { "Car", "Horse", "Thimble", "Dog", "Ship", "Top Hat", "Iron", "Wheelbarrow", "Shoe" };

            PlayerFactory factory = new PlayerFactory(names);

            players = factory.CreateAll(new RandomNumberGenerator());
        }
        public void Setup()
        {
            generator = new RandomGeneratorMoc();
            string[] properties =
            {
                "a", "b", "c"
            };

            gameBoard = new Board(new PropertyFactory(properties));
            players = new string[]
            {
                "a", "b", "c", "d"
            };

            playerFactory = new PlayerFactory(players, generator, gameBoard);
        }
Beispiel #3
0
        public void Setup()
        {
            generator = new RandomGeneratorMoc();
            string[] properties =
            {
                "a", "b", "c"
            };

            gameBoard = new Board(new PropertyFactory(properties));
            players   = new string[]
            {
                "a", "b", "c", "d"
            };

            playerFactory = new PlayerFactory(players, generator, gameBoard);
        }