Example #1
0
    public void Initialize()
    {
        if (instance == null)
        {
            instance = this;
        }

        RefreshWealth();
    }
Example #2
0
        public void CalculateWealth_Test()
        {
            var WealthManager = new WealthManager();
            int pickUp        = 5;
            int timePassed    = 20;

            int expectedTolatWealth = (5 * 100) - 20;

            int wealth = WealthManager.Calculate(pickUp, timePassed);


            Assert.That(wealth, Is.EqualTo(expectedTolatWealth));
            // Use the Assert class to test conditions
        }