Example #1
0
        public void Always_true_condition()
        {
            var option = new ConditionalOption("Yeah !", (ctx) => true);

            Assert.IsTrue(option.CanChoose(null));
        }
Example #2
0
        public void Player_historical_knowledge_KO()
        {
            var option = new ConditionalOption("Yeah !", (ctx) => ((PlayerContext)ctx).HistoricalKnowledge > 50);

            Assert.IsFalse(option.CanChoose(new PlayerContext(25)));
        }