Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            string  newPhoneModel = "S4";
            string  newPhoneManuf = "Samsung";
            GSMInfo newPhone      = new GSMInfo(newPhoneModel, newPhoneManuf);//Base values added. Base values printed

            Console.WriteLine(newPhone);
            //Please adjust device characteristics.

            GSMCallHistoryTest gsm = new GSMCallHistoryTest();

            gsm.CallHistoryTest(5);
            Console.WriteLine(gsm);
        }
Ejemplo n.º 2
0
        public void TestGsm(int gsmTests)
        {
            GSMInfo[] phones = new GSMInfo[gsmTests];

            for (int i = 0; i < gsmTests; i++)
            {
                phones[i] = new GSMInfo("Model" + (i + 1), "Manufacturer" + (i + 1), "Owner" + (i + 1), 0 + (i + 1));

                Console.WriteLine(phones[i]);
            }

            GSMInfo Iphone = new GSMInfo("Iphone4S", "Apple");

            Console.WriteLine(Iphone.Iphone4SInfo);
        }