Move all battle state from IPokemon to an ephemeral IBattlePokemon wrapper
This commit is contained in:
@@ -15,7 +15,7 @@ public class FlyingPressTests
|
||||
/// Creates a fully mocked test setup for Flying Press tests, with a type library containing both the
|
||||
/// Fighting and Flying types.
|
||||
/// </summary>
|
||||
private static (FlyingPress flyingPress, IExecutingMove move, IPokemon target, TypeIdentifier fighting,
|
||||
private static (FlyingPress flyingPress, IExecutingMove move, IBattlePokemon target, TypeIdentifier fighting,
|
||||
TypeIdentifier flying) CreateTestSetup()
|
||||
{
|
||||
var flyingPress = new FlyingPress();
|
||||
@@ -25,7 +25,7 @@ public class FlyingPressTests
|
||||
|
||||
var move = Substitute.For<IExecutingMove>();
|
||||
move.User.Library.StaticLibrary.Types.Returns(typeLibrary);
|
||||
var target = Substitute.For<IPokemon>();
|
||||
var target = Substitute.For<IBattlePokemon>();
|
||||
return (flyingPress, move, target, fighting, flying);
|
||||
}
|
||||
|
||||
@@ -83,7 +83,7 @@ public class FlyingPressTests
|
||||
|
||||
var move = Substitute.For<IExecutingMove>();
|
||||
move.User.Library.StaticLibrary.Types.Returns(typeLibrary);
|
||||
var target = Substitute.For<IPokemon>();
|
||||
var target = Substitute.For<IBattlePokemon>();
|
||||
IList<TypeIdentifier> types = new List<TypeIdentifier> { fighting };
|
||||
|
||||
// Act
|
||||
|
||||
Reference in New Issue
Block a user