Skip to content

Commit

Permalink
Update SceneCommandInterpreter_Tests.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
benpollarduk authored Dec 6, 2024
1 parent 4f4cb06 commit d315764
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions NetAF.Tests/Interpretation/SceneCommandInterpreter_Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,50 @@ public void GivenWestShort_WhenInterpret_ThenReturnTrue()
Assert.IsTrue(result.WasInterpretedSuccessfully);
}

[TestMethod]
public void GivenUp_WhenInterpret_ThenReturnTrue()
{
var interpreter = new SceneCommandInterpreter();
var game = Game.Create(new GameInfo(string.Empty, string.Empty, string.Empty), string.Empty, AssetGenerator.Retained(overworld, new PlayableCharacter(string.Empty, string.Empty)), GameEndConditions.NoEnd, TestGameConfiguration.Default).Invoke();

var result = interpreter.Interpret(Move.UpCommandHelp.Command, game);

Assert.IsTrue(result.WasInterpretedSuccessfully);
}

[TestMethod]
public void GivenUpShort_WhenInterpret_ThenReturnTrue()
{
var interpreter = new SceneCommandInterpreter();
var game = Game.Create(new GameInfo(string.Empty, string.Empty, string.Empty), string.Empty, AssetGenerator.Retained(overworld, new PlayableCharacter(string.Empty, string.Empty)), GameEndConditions.NoEnd, TestGameConfiguration.Default).Invoke();

var result = interpreter.Interpret(Move.UpCommandHelp.Shortcut, game);

Assert.IsTrue(result.WasInterpretedSuccessfully);
}

[TestMethod]
public void GivenDown_WhenInterpret_ThenReturnTrue()
{
var interpreter = new SceneCommandInterpreter();
var game = Game.Create(new GameInfo(string.Empty, string.Empty, string.Empty), string.Empty, AssetGenerator.Retained(overworld, new PlayableCharacter(string.Empty, string.Empty)), GameEndConditions.NoEnd, TestGameConfiguration.Default).Invoke();

var result = interpreter.Interpret(Move.DownCommandHelp.Command, game);

Assert.IsTrue(result.WasInterpretedSuccessfully);
}

[TestMethod]
public void GivenDownShort_WhenInterpret_ThenReturnTrue()
{
var interpreter = new SceneCommandInterpreter();
var game = Game.Create(new GameInfo(string.Empty, string.Empty, string.Empty), string.Empty, AssetGenerator.Retained(overworld, new PlayableCharacter(string.Empty, string.Empty)), GameEndConditions.NoEnd, TestGameConfiguration.Default).Invoke();

var result = interpreter.Interpret(Move.DownCommandHelp.Shortcut, game);

Assert.IsTrue(result.WasInterpretedSuccessfully);
}

[TestMethod]
public void GivenExamine_WhenInterpret_ThenReturnTrue()
{
Expand Down

0 comments on commit d315764

Please sign in to comment.