Ejemplo n.º 1
0
        public void QuestionTest()
        {
            var q        = new Beers();
            var beersStr = q.Question.Split(new[] { '?' })[1];
            var beers    = beersStr.Trim().Split(new[] { ' ' });

            Console.WriteLine(string.Join(" ", beers));
            var all = beers.All(beer => _beers[beer]);

            Console.WriteLine(all);
            Assert.IsTrue(q.Run("" + all));
            Assert.IsFalse(q.Run("" + !all));
        }