//For loop implementation
 private void generateFor_CheckedChanged(object sender, RoutedEventArgs e)
 {
     if (generateFor.IsChecked == true)
     {
         IGenerator generator = new ForLoopGenerator();
         PopulateGUIcul(generator, DisplayBoxFor, ElapsedTimeFor, NumberOfList, getFail, TimeDelayEstimate, NormalEstimate);
     }
 }
Exemple #2
0
        public void TestForLoopGenerator(int size)
        {
            // arrange
            IGenerator generator = new ForLoopGenerator();
            // act
            IEnumerable <ItemList> result     = generator.Generate(size);
            ICollection            collection = result as ICollection;

            // assert
            Assert.AreEqual(size, collection.Count);
        }