コード例 #1
0
ファイル: Program.cs プロジェクト: AbbyGeek/GC_Lab14
        static void Main(string[] args)
        {
            //Alligator alligator = new Alligator();


            CountTestApp.TestCase();

            Sheep sheep = new Sheep("Charles");

            CountUntil.CountTill(sheep, 2);

            //sheep = new Sheep("Blumpkin");
            //sheep.Name = "Blumpkin";
            Sheep clone = sheep.Clone() as Sheep;

            clone.Name = "Blumpkin the pumpkin";
            CountUntil.CountTill(clone, 3);

            CountUntil.CountTill(sheep, 5);

            Console.ReadLine();
        }
コード例 #2
0
        //uses CountUntil to count the aligator class three times.
        public static void TestCase()
        {
            Alligator alligator = new Alligator();

            CountUntil.CountTill(alligator, 3);
        }