예제 #1
0
 public void ShouldGetValueAttributeFromElectricModifier(ElectricModifier electricModifier, double expectedValue)
 {
     Assert.That(electricModifier.GetModifierValue(), Is.EqualTo(expectedValue));
 }
예제 #2
0
        public void ShouldGetExpectedHitlag(double damage, CrouchingModifier crouchModifier,
            ElectricModifier elecModifier, double hitlagMultiplier, int expectedResult)
        {
            var hitlagData = new HitlagProblemData
            {
                Damage = damage,
                CrouchingModifier = crouchModifier,
                ElectricModifier = elecModifier,
                HitlagMultiplier = hitlagMultiplier
            };

            var result = _calculator.Hitlag(hitlagData);
            Assert.That(result, Is.EqualTo(expectedResult));
        }