public void Returns_false_if_choice_not_in_the_list() { var newChoice = new AlwaysTrueOption("Yeah !"); Assert.IsFalse(_choiceEvent.Choose(newChoice, new DummyContext())); Assert.IsNull(_choiceEvent.CurrentChoice); }
public void True_with_player_context() { var option = new AlwaysTrueOption("Yeah !"); Assert.IsTrue(option.CanChoose(new PlayerContext())); }
public void Options_always_possible() { var option = new AlwaysTrueOption("Yeah !"); Assert.IsTrue(option.CanChoose(null)); }