Ejemplo n.º 1
0
        public void ChoiceWorks()
        {
            var enm   = Enumerable.Choice("a", "b", "c", "d");
            int count = 0;

            foreach (var x in enm)
            {
                Assert.IsTrue(x == "a" || x == "b" || x == "c" || x == "d", "Value should be one of the choices");
                if (count++ > 10)
                {
                    break;
                }
            }
        }