Esempio n. 1
0
        public void Ctor_should_throw_an_error_when_up_multiplier_is_incorrect(double value)
        {
            Action action = () => implementation = new AdaptiveHealthWithoutDecay(value, 0.5, 0.01);

            action.Should().Throw <ArgumentOutOfRangeException>().Which.ShouldBePrinted();
        }
Esempio n. 2
0
        public void Ctor_should_throw_an_error_when_minimum_health_value_is_incorrect(double value)
        {
            Action action = () => implementation = new AdaptiveHealthWithoutDecay(2, 0.5, value);

            action.Should().Throw <ArgumentOutOfRangeException>().Which.ShouldBePrinted();
        }
Esempio n. 3
0
 public void TestSetup()
 {
     implementation = new AdaptiveHealthWithoutDecay(2, 0.25, 0.002);
 }