Skip to content

Commit

Permalink
Arreglo de errores
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianCuneo committed Nov 15, 2024
1 parent d9bbd63 commit 8391334
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Library/Commands/AttackCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public async Task ExecuteAsync([Remainder]string moveName)
//validar movename

string displayName = CommandHelper.GetDisplayName(Context);
string result = Facade.Instance.PlayerAttack(displayName, moveName);
string result = Facade.Instance.PlayerAttack(displayName);


await ReplyAsync(result);
Expand Down
2 changes: 1 addition & 1 deletion src/Library/Library.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion test/LibraryTests/UserStoriesTests/UserStory4Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public void SetUp()
public void PlayerAttack_Works_Correctly()
{
// Ejecutar el ataque
string message = Facade.Instance.PlayerAttack(attacker, move);
string message = Facade.Instance.PlayerAttack(attacker);

Assert.That(message, Does.Contain(
$"""
Expand Down
2 changes: 1 addition & 1 deletion test/LibraryTests/UserStoriesTests/UserStory6Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public void Player_Attack_Each_Other()
Facade.Instance.ChoosePokemonAndMoveToAttack("Player2", "Llamarada", "Blaziken");

// Act
string result = Facade.Instance.PlayerAttack("Player1", "Corte");
string result = Facade.Instance.PlayerAttack("Player1");
string expected =" Jugador Player1 usa al Pokémon Mew que ataca con Corte a Blaziken de Player2";
// Assert
Assert.That(result, Is.EqualTo(expected));
Expand Down

0 comments on commit 8391334

Please sign in to comment.