public async Task TestCalculateDPSMassDriverFromRepository() { var repo = new WeaponRepository(); await repo.Initialize(); Weapon massDriver = repo.Weapons .Find(X => X.Name == "Mass Driver"); Assert.IsNotNull(massDriver); double ArmorResilianceNoArmor = 0; Assert.AreEqual(1.50d, massDriver.DpsVs(ArmorResilianceNoArmor), 0.0051); // Increased! damage vs Titanium armor with mass driver double ArmorResilianceTitanium = 5; Assert.AreEqual(3.00, massDriver.DpsVs(ArmorResilianceTitanium), 0.0051); // reduced damage with mass driver against Neutronium armor double ArmorResilianceNeutronium = 15; Assert.AreEqual(1.13f, massDriver.DpsVs(ArmorResilianceNeutronium), 0.0051); }