/******************************************************************************** Copyright 2008 Rick Miller and Pulp Free Press - All Rights Reserved The source code contained within this file is intended for educational purposes only. No warranty as to the quality of the code is expressed or implied. Feel free to use this code provided you include the copyright notice in its entirety. **********************************************************************************/ using System; public class MainTestApp { public static void Main(){ Incrementer i1 = new Incrementer(0); Incrementer i2 = new DerivedIncrementer(20); i1.Increment(1); i1.Increment(2); i1.Increment(3); i1.Increment(4); i1.Increment(5); Console.WriteLine("-----------------------------"); i2.Increment(4); i2.Increment(5); i2.Increment(6); // will cause an assertion error } // end main() method }// end MainTestApp clas definition