Beispiel #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);
            }
Beispiel #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);
            }
Beispiel #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);
            }
Beispiel #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);
            }
Beispiel #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);
            }
Beispiel #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);
            }