public void OneMineralConcentration()
 {
     testRace.TestAdvantagePoints = 3;
     testRace.LeftoverPointTarget = "Mineral concentration";
     HomeStarLeftoverpointsAdjuster.Adjust(star, testRace);
     Assert.AreEqual(1, star.MineralConcentration.Boranium + star.MineralConcentration.Germanium + star.MineralConcentration.Ironium);
 }
 public void SomeDefenses()
 {
     testRace.TestAdvantagePoints = 29;
     testRace.LeftoverPointTarget = "Defenses";
     HomeStarLeftoverpointsAdjuster.Adjust(star, testRace);
     Assert.AreEqual(2, star.Defenses);
 }
 public void SomeFactories()
 {
     testRace.TestAdvantagePoints = 11;
     testRace.LeftoverPointTarget = "Factories";
     HomeStarLeftoverpointsAdjuster.Adjust(star, testRace);
     Assert.AreEqual(2, star.Factories);
 }
 public void SomeMines()
 {
     testRace.TestAdvantagePoints = 10;
     testRace.LeftoverPointTarget = "Mines";
     HomeStarLeftoverpointsAdjuster.Adjust(star, testRace);
     Assert.AreEqual(5, star.Mines);
 }
 public void NoSurfaceMinerals()
 {
     testRace.TestAdvantagePoints = 0;
     testRace.LeftoverPointTarget = "Surface minerals";
     HomeStarLeftoverpointsAdjuster.Adjust(star, testRace);
     Assert.AreEqual(0, star.ResourcesOnHand.Boranium);
     Assert.AreEqual(0, star.ResourcesOnHand.Germanium);
     Assert.AreEqual(0, star.ResourcesOnHand.Ironium);
 }
 public void SomeSurfaceMinerals()
 {
     star.ResourcesOnHand.Boranium  = 10;
     star.ResourcesOnHand.Germanium = 10;
     star.ResourcesOnHand.Ironium   = 10;
     testRace.TestAdvantagePoints   = 3;
     testRace.LeftoverPointTarget   = "Surface minerals";
     HomeStarLeftoverpointsAdjuster.Adjust(star, testRace);
     Assert.AreEqual(20, star.ResourcesOnHand.Boranium, "Boranium, Sum: " + (star.ResourcesOnHand.Boranium + star.ResourcesOnHand.Germanium + star.ResourcesOnHand.Ironium));
     Assert.AreEqual(20, star.ResourcesOnHand.Germanium, "Germanium");
     Assert.AreEqual(20, star.ResourcesOnHand.Ironium, "Ironium");
 }