Example #1
0
        public void AddWealth_DoesntHaveWealth_Adds()
        {
            var result = itemSystem.AddWealth(entity, "TestCurrency", 5);

            result.Should().BeTrue();

            entityEngine.Received(1).AddComponent(entity, Arg.Is <Wealth>(w => w.Amount == 5 && w.Currency == "TestCurrency"));
        }