public void DoesGetActionByIdReturnNullWhenActionDoesNotExist() { //Arrange var navigator = new GameStateNavigator(); //Act var actual = navigator.GetActionById(this.TestGameState, "Unknown Action"); //Assert Assert.IsNull(actual); }
public void DoesGetActionByIdReturnExpectedActionRegardlessOfCase() { //Arrange var navigator = new GameStateNavigator(); //Act var actual = navigator.GetActionById(this.TestGameState, "CLEARHP"); //Assert Assert.IsNotNull(actual); Assert.AreEqual(actual.Id, "ClearHP"); }