public void TestTotalModScore(ModScoreTest testValues) { var loadout = TestHelper.GetEmptyLoadout(); loadout.UnitConfiguration.DifficultyLevel = testValues.Diff; PopulateFromTestCase(loadout.Mods, testValues); Assert.That(loadout.Mods.TotalModScore, Is.EqualTo(testValues.Expected)); }
static void PopulateFromTestCase(VModsCollection mods, ModScoreTest testValues) { mods.Damage.CurrentLevel = (short)testValues.Damage; mods.Health.CurrentLevel = (short)testValues.Health; mods.Armor.CurrentLevel = (short)testValues.Armor; mods.SelfMitigation.CurrentLevel = (short)testValues.Sm; mods.Speed.CurrentLevel = (short)testValues.Speed; mods.DamageReduction.CurrentLevel = (short)testValues.Dr; mods.Difficulty.CurrentLevel = (short)testValues.Difficulty; mods.Potency.CurrentLevel = (short)testValues.Potency; mods.Taxes.CurrentLevel = (short)testValues.Taxes; mods.Rank.CurrentLevel = (short)testValues.Rank; mods.Tier.CurrentLevel = (short)testValues.Tier; mods.Scarcity.CurrentLevel = (short)testValues.Scarcity; mods.Bountyless.CurrentLevel = (short)testValues.Bountyless; mods.Unwell.CurrentLevel = (short)testValues.Unwell; mods.RankReversion.CurrentLevel = (short)testValues.Rr; mods.BossPower.CurrentLevel = (short)testValues.Bp; mods.CriticalMiscalculation.CurrentLevel = (short)testValues.Cm; mods.GlassCannon.CurrentLevel = (short)testValues.Gc; mods.Supply.CurrentLevel = (short)testValues.Supply; mods.VolatileDead.CurrentLevel = (short)testValues.Vd; }