Ejemplo n.º 1
0
 public void Indexer_returns_coroutines_in_order_added()
 {
     ICFunc[] cwArray = new CFunc[10];
     for (int i = 0; i < cwArray.Length; i++)
     {
         cwArray[i] = runnerUnderTest.Start(TestRoutine());
     }
     for (int i = 0; i < cwArray.Length; i++)
     {
         Assert.AreSame(cwArray[i], runnerUnderTest[i]);
     }
 }
Ejemplo n.º 2
0
        public void IEnumerable_iteration_returns_coroutines_in_order_added()
        {
            ICFunc[] cwArray = new CFunc[10];
            for (int i = 0; i < cwArray.Length; i++)
            {
                cwArray[i] = runnerUnderTest.Start(TestRoutine());
            }
            int index = 0;

            foreach (CFunc cw in runnerUnderTest)
            {
                Assert.AreSame(cwArray[index++], cw);
            }
        }