Move all battle state from IPokemon to an ephemeral IBattlePokemon wrapper
This commit is contained in:
@@ -8,8 +8,8 @@ public class ChoiceQueueTests
|
||||
[Test]
|
||||
public async Task ChoiceQueue_HighSpeedFirstWhenPriorityEqual()
|
||||
{
|
||||
var pokemon1 = Substitute.For<IPokemon>();
|
||||
var pokemon2 = Substitute.For<IPokemon>();
|
||||
var pokemon1 = Substitute.For<IBattlePokemon>();
|
||||
var pokemon2 = Substitute.For<IBattlePokemon>();
|
||||
|
||||
var choice1 = Substitute.For<IMoveChoice>();
|
||||
choice1.User.Returns(pokemon1);
|
||||
@@ -28,8 +28,8 @@ public class ChoiceQueueTests
|
||||
[Test]
|
||||
public async Task ChoiceQueue_HighPriorityFirst()
|
||||
{
|
||||
var pokemon1 = Substitute.For<IPokemon>();
|
||||
var pokemon2 = Substitute.For<IPokemon>();
|
||||
var pokemon1 = Substitute.For<IBattlePokemon>();
|
||||
var pokemon2 = Substitute.For<IBattlePokemon>();
|
||||
|
||||
var choice1 = Substitute.For<IMoveChoice>();
|
||||
choice1.User.Returns(pokemon1);
|
||||
@@ -48,10 +48,10 @@ public class ChoiceQueueTests
|
||||
[Test]
|
||||
public async Task ChoiceQueue_MovePokemonChoiceNext()
|
||||
{
|
||||
var pokemon1 = Substitute.For<IPokemon>();
|
||||
var pokemon2 = Substitute.For<IPokemon>();
|
||||
var pokemon3 = Substitute.For<IPokemon>();
|
||||
var pokemon4 = Substitute.For<IPokemon>();
|
||||
var pokemon1 = Substitute.For<IBattlePokemon>();
|
||||
var pokemon2 = Substitute.For<IBattlePokemon>();
|
||||
var pokemon3 = Substitute.For<IBattlePokemon>();
|
||||
var pokemon4 = Substitute.For<IBattlePokemon>();
|
||||
|
||||
var choice1 = Substitute.For<IMoveChoice>();
|
||||
choice1.User.Returns(pokemon1);
|
||||
@@ -75,10 +75,10 @@ public class ChoiceQueueTests
|
||||
[Test]
|
||||
public async Task ChoiceQueue_MovePokemonChoiceNextFailsIfAlreadyExecuted()
|
||||
{
|
||||
var pokemon1 = Substitute.For<IPokemon>();
|
||||
var pokemon2 = Substitute.For<IPokemon>();
|
||||
var pokemon3 = Substitute.For<IPokemon>();
|
||||
var pokemon4 = Substitute.For<IPokemon>();
|
||||
var pokemon1 = Substitute.For<IBattlePokemon>();
|
||||
var pokemon2 = Substitute.For<IBattlePokemon>();
|
||||
var pokemon3 = Substitute.For<IBattlePokemon>();
|
||||
var pokemon4 = Substitute.For<IBattlePokemon>();
|
||||
|
||||
var choice1 = Substitute.For<IMoveChoice>();
|
||||
choice1.User.Returns(pokemon1);
|
||||
@@ -103,10 +103,10 @@ public class ChoiceQueueTests
|
||||
[Test]
|
||||
public async Task ChoiceQueue_MovePokemonChoiceLast()
|
||||
{
|
||||
var pokemon1 = Substitute.For<IPokemon>();
|
||||
var pokemon2 = Substitute.For<IPokemon>();
|
||||
var pokemon3 = Substitute.For<IPokemon>();
|
||||
var pokemon4 = Substitute.For<IPokemon>();
|
||||
var pokemon1 = Substitute.For<IBattlePokemon>();
|
||||
var pokemon2 = Substitute.For<IBattlePokemon>();
|
||||
var pokemon3 = Substitute.For<IBattlePokemon>();
|
||||
var pokemon4 = Substitute.For<IBattlePokemon>();
|
||||
|
||||
var choice1 = Substitute.For<IMoveChoice>();
|
||||
choice1.User.Returns(pokemon1);
|
||||
@@ -133,10 +133,10 @@ public class ChoiceQueueTests
|
||||
[Test]
|
||||
public async Task ChoiceQueue_MovePokemonChoiceLastFailsIfAlreadyExecuted()
|
||||
{
|
||||
var pokemon1 = Substitute.For<IPokemon>();
|
||||
var pokemon2 = Substitute.For<IPokemon>();
|
||||
var pokemon3 = Substitute.For<IPokemon>();
|
||||
var pokemon4 = Substitute.For<IPokemon>();
|
||||
var pokemon1 = Substitute.For<IBattlePokemon>();
|
||||
var pokemon2 = Substitute.For<IBattlePokemon>();
|
||||
var pokemon3 = Substitute.For<IBattlePokemon>();
|
||||
var pokemon4 = Substitute.For<IBattlePokemon>();
|
||||
|
||||
var choice1 = Substitute.For<IMoveChoice>();
|
||||
choice1.User.Returns(pokemon1);
|
||||
|
||||
Reference in New Issue
Block a user