Ejemplo n.º 1
0
            public void WillAddToBuildingCount()
            {
                var planet = new Planet();
                var player = new Player {
                    TotalNetValue = new NetValue()
                };
                const BuildingType Type = BuildingType.CashFactory;

                planet.AddBuildings(player, 5, Type);

                Assert.AreEqual(player.TotalNetValue.EntityCount, 5);
            }
Ejemplo n.º 2
0
            public void WillAddTaxOffice()
            {
                var planet = new Planet();
                var player = new Player {
                    TotalNetValue = new NetValue()
                };

                const BuildingType Type = BuildingType.TaxOffice;

                planet.AddBuildings(player, 1, Type);

                Assert.AreEqual(planet.TaxOfficeCount, 1);
            }
Ejemplo n.º 3
0
            public void WillAddResearchLabs()
            {
                var planet = new Planet();
                var player = new Player {
                    TotalNetValue = new NetValue()
                };

                const BuildingType Type = BuildingType.ResearchLab;

                planet.AddBuildings(player, 1, Type);

                Assert.AreEqual(planet.ResearchLabCount, 1);
            }
Ejemplo n.º 4
0
            public void WillAddPortal()
            {
                var planet = new Planet();
                var player = new Player {
                    TotalNetValue = new NetValue()
                };

                const BuildingType Type = BuildingType.Portal;

                planet.AddBuildings(player, 1, Type);

                Assert.IsTrue(planet.HasPortal);
            }
Ejemplo n.º 5
0
            public void WillAddLivingQuarters()
            {
                var planet = new Planet();
                var player = new Player {
                    TotalNetValue = new NetValue()
                };

                const BuildingType Type = BuildingType.LivingQuarters;

                planet.AddBuildings(player, 1, Type);

                Assert.AreEqual(planet.LivingQuartersCount, 1);
            }
Ejemplo n.º 6
0
            public void WillAddCashFactorys()
            {
                var planet = new Planet();
                var player = new Player {
                    TotalNetValue = new NetValue()
                };

                const BuildingType Type = BuildingType.CashFactory;

                planet.AddBuildings(player, 1, Type);

                Assert.AreEqual(planet.CashFactoryCount, 1);
            }