Fixes some warnings from unit tests
This commit is contained in:
@@ -38,9 +38,9 @@ public class SetMoveChoiceAction : IntegrationTestAction
|
||||
{
|
||||
var user = battle.Sides[Place[0]].Pokemon[Place[1]];
|
||||
await Assert.That(user).IsNotNull();
|
||||
var move = user.Moves.First(m => m?.MoveData.Name == Move);
|
||||
var move = user!.Moves.First(m => m?.MoveData.Name == Move);
|
||||
await Assert.That(move).IsNotNull();
|
||||
var res = battle.TrySetChoice(new MoveChoice(user, move, Target[0], Target[1]));
|
||||
var res = battle.TrySetChoice(new MoveChoice(user, move!, Target[0], Target[1]));
|
||||
await Assert.That(res).IsTrue();
|
||||
}
|
||||
}
|
||||
@@ -54,7 +54,7 @@ public class SetPassChoiceAction : IntegrationTestAction
|
||||
{
|
||||
var user = battle.Sides[Place[0]].Pokemon[Place[1]];
|
||||
await Assert.That(user).IsNotNull();
|
||||
var res = battle.TrySetChoice(new PassChoice(user));
|
||||
var res = battle.TrySetChoice(new PassChoice(user!));
|
||||
await Assert.That(res).IsTrue();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user