예제 #1
0
            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);
            }
예제 #2
0
        public void True_with_player_context()
        {
            var option = new AlwaysTrueOption("Yeah !");

            Assert.IsTrue(option.CanChoose(new PlayerContext()));
        }
예제 #3
0
        public void Options_always_possible()
        {
            var option = new AlwaysTrueOption("Yeah !");

            Assert.IsTrue(option.CanChoose(null));
        }