Example #1
0
    public void TestGatherWithCity()
    {
        Player   owner = new Player(new ArmyManager(), new Color(0, 0, 0));
        Province p     = new Province(new City("Urbana", 5), owner);

        p.Gather(owner);

        Assert.AreEqual(owner.Resources.GetAmountOf(ResourceType.Food), p.ActiveResources.GetAmountOf(ResourceType.Food));
        Assert.AreEqual(owner.Resources.GetAmountOf(ResourceType.Weapons), p.ActiveResources.GetAmountOf(ResourceType.Weapons));
    }