Style cleanup
This commit is contained in:
@@ -27,21 +27,19 @@ public class DamageCalculatorTests
|
||||
// Imagine a level 75 Glaceon
|
||||
attacker.Setup(x => x.Level).Returns(75);
|
||||
// with an effective Attack stat of 123
|
||||
attacker.Setup(x => x.BoostedStats).Returns(new StatisticSet<uint>(
|
||||
1, 123, 1, 1, 1, 1));
|
||||
attacker.Setup(x => x.BoostedStats).Returns(new StatisticSet<uint>(1, 123, 1, 1, 1, 1));
|
||||
// We use 10 as the Ice type
|
||||
attacker.Setup(x => x.Types).Returns([new TypeIdentifier(10)]);
|
||||
|
||||
|
||||
var defender = new Mock<IPokemon>();
|
||||
// a Garchomp with an effective Defense stat of 163
|
||||
defender.Setup(x => x.BoostedStats).Returns(new StatisticSet<uint>(
|
||||
1, 1, 163, 1, 1, 1));
|
||||
defender.Setup(x => x.BoostedStats).Returns(new StatisticSet<uint>(1, 1, 163, 1, 1, 1));
|
||||
defender.Setup(x => x.GetScripts()).Returns(new ScriptIterator([]));
|
||||
|
||||
var useMove = new Mock<IMoveData>();
|
||||
// Ice Fang (an Ice-type physical move with a power of 65)
|
||||
useMove.Setup(x => x.Category).Returns(MoveCategory.Physical);
|
||||
|
||||
|
||||
var damageCalculator = new Gen7DamageCalculator(false);
|
||||
var executingMove = new Mock<IExecutingMove>();
|
||||
executingMove.Setup(x => x.UseMove).Returns(useMove.Object);
|
||||
@@ -54,7 +52,7 @@ public class DamageCalculatorTests
|
||||
hit.Setup(x => x.Type).Returns(new TypeIdentifier(10));
|
||||
// has a double weakness to the move's Ice type
|
||||
hit.Setup(x => x.Effectiveness).Returns(4.0f);
|
||||
|
||||
|
||||
var damage = damageCalculator.GetDamage(executingMove.Object, defender.Object, 0, hit.Object);
|
||||
// That means Ice Fang will do between 168 and 196 HP damage, depending on luck.
|
||||
// Note that we are testing deterministic damage, so we expect the maximum damage.
|
||||
|
||||
@@ -23,7 +23,7 @@ public class AcrobaticsTests
|
||||
// Assert
|
||||
await Assert.That(basePower).IsEqualTo((byte)20);
|
||||
}
|
||||
|
||||
|
||||
[Test]
|
||||
public async Task ChangeBasePower_UserHoldingItem_BasePowerUnchanged()
|
||||
{
|
||||
@@ -59,5 +59,4 @@ public class AcrobaticsTests
|
||||
// Assert
|
||||
await Assert.That(basePower).IsEqualTo(byte.MaxValue);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user