public void Always_true_condition() { var option = new ConditionalOption("Yeah !", (ctx) => true); Assert.IsTrue(option.CanChoose(null)); }
public void Player_historical_knowledge_KO() { var option = new ConditionalOption("Yeah !", (ctx) => ((PlayerContext)ctx).HistoricalKnowledge > 50); Assert.IsFalse(option.CanChoose(new PlayerContext(25))); }