static int Main() { IList <int> list = new List <int> (); int result = list.Map("Hello"); if (result != 1) { return(1); } IList <int> list2 = new SpecialList <int> (); int result2 = list2.Map("World"); if (result2 != 2) { return(2); } return(0); }
static int Test1() { Console.WriteLine("----Test1"); IList <int> list = new List <int>(); int result = list.Map("Hello"); if (result != 1) { return(1); } IList <int> list2 = new SpecialList <int>(); int result2 = list2.Map("World"); if (result2 != 2) { return(2); } return(0); }