using PkmnLib.Dynamic.Models;
using PkmnLib.Plugin.Gen7.Scripts.Moves;
namespace PkmnLib.Plugin.Gen7.Tests.Scripts.Moves;
///
/// Tests for the move script.
/// Gen VII Bulbapedia behavior: "Chip Away inflicts damage, ignoring any changes to the target's Defense
/// and evasion stat stages — positive and negative."
///
public class ChipAwayTests
{
///
/// Bulbapedia: Chip Away inflicts damage "ignoring any changes to the target's Defense [...] stat
/// stages".
///
[Test]
public async Task BypassDefensiveStatBoosts_Always_Bypasses()
{
// Arrange
var script = new ChipAway();
var bypass = false;
// Act
script.BypassDefensiveStatBoosts(Substitute.For(), Substitute.For(), 0, ref bypass);
// Assert
await Assert.That(bypass).IsTrue();
}
///
/// Bulbapedia: Chip Away inflicts damage "ignoring any changes to the target's [...] evasion stat
/// stages".
///
[Test]
public async Task BypassEvasionStatBoosts_Always_Bypasses()
{
// Arrange
var script = new ChipAway();
var bypass = false;
// Act
script.BypassEvasionStatBoosts(Substitute.For(), Substitute.For(), 0, ref bypass);
// Assert
await Assert.That(bypass).IsTrue();
}
}