public void DoubleWeaponsHaveMultipleDamages(string weapon) { var doubleWeapons = WeaponConstants.GetAllDouble(false, false); var isDouble = doubleWeapons.Contains(weapon); var damageData = table[weapon].Select(d => damageHelper.ParseEntries(d)); if (isDouble) { Assert.That(damageData, Is.All.Length.EqualTo(2), weapon); } else { Assert.That(damageData, Is.All.Length.EqualTo(1), weapon); } }
public void WeaponData(string weapon, int threatRange, string criticalMultiplier, string ammunition, string secondaryCriticalMultiplier) { var collection = new string[4]; collection[DataIndexConstants.Weapon.CriticalMultiplier] = criticalMultiplier; collection[DataIndexConstants.Weapon.SecondaryCriticalMultiplier] = secondaryCriticalMultiplier; collection[DataIndexConstants.Weapon.ThreatRange] = threatRange.ToString(); collection[DataIndexConstants.Weapon.Ammunition] = ammunition; Assert.That(criticalMultiplier, Is.EqualTo("x2").Or.EqualTo("x3").Or.EqualTo("x4")); var doubleWeapons = WeaponConstants.GetAllDouble(false, false); if (doubleWeapons.Contains(weapon)) { Assert.That(secondaryCriticalMultiplier, Is.EqualTo("x2").Or.EqualTo("x3").Or.EqualTo("x4")); } else { Assert.That(secondaryCriticalMultiplier, Is.Empty); } base.OrderedCollections(weapon, collection); }
public void DoubleWeaponsMatchConstants() { var doubleWeapons = WeaponConstants.GetAllDouble(false, false); VerifyAttribute(doubleWeapons, AttributeConstants.DoubleWeapon); }