Ejemplo n.º 1
0
        public void Spinner_Test()
        {
            string[]         backup  = new string[] { "Red", "Blue", "Yellow", "Green" };
            Spinner <string> spinner = new Spinner <string>("Red", "Blue", "Yellow", "Green");

            Tuple <int, string> result;

            for (int i = 0; i < 20; i++)
            {
                result = spinner.ContextSpin();
                Assert.AreEqual(result.Item2, backup[result.Item1]);
            }
        }