コード例 #1
0
        public void only_the_wicker_cage_can_hold_the_bird()
        {
            var oven = new Oven();

            oven.Initialize();
            Objects.Add(oven);
            Location.Objects.Add(oven);

            var bird = Objects.Get <LittleBird>();

            Location.Objects.Add(bird);

            var results = parser.Parse("put bird into oven");

            Assert.AreEqual("Don't put the poor bird in the oven!", results[0]);
        }