Esempio n. 1
0
        public void can_create_a_random_character_and_verify_exists()
        {
            string[] fakeStats = { "stat1", "stat2" };

            CharacterDataHolder characterDataHolder = new CharacterDataHolder(fakeStats);

            Character character = CharacterDataCreator.CreateRandomCharacter(characterDataHolder, 1, 2);

            Assert.NotNull(CharacterDataSupplier.AllCharacterNames(characterDataHolder));
            Assert.AreEqual(character.CharacterName, CharacterDataSupplier.AllCharacterNames(characterDataHolder)[CharacterDataSupplier.AllCharacterNames(characterDataHolder).Length - 1]);
        }
    private void CreateTestCharacters()
    {
        Bank bank = gameManager.bank;
        CharacterDataHolder characterDataHolder = gameManager.Characters;

        for (int i = 0; i < characterAmount; i++)
        {
            Character character = CharacterDataCreator.CreateRandomCharacter(characterDataHolder, Random.Range(0, 9999999), Random.Range(0, 9999999));
            CharacterDataCreator.CreateCharacterAccount(bank, character);

            SetCharcterStatsRandomMulipliers(character);
            SetCharcterStatsTreshholds(character);
        }
    }