private static int Main() { CoClass co = new CoClass(); if (Static1(co) != 444) { Console.WriteLine("Test 1 failed."); return(101); } if (Static2(co) != 444) { Console.WriteLine("Test 2 failed."); return(102); } if (Static3(co) != 444) { Console.WriteLine("Test 3 failed."); return(103); } BaseClass bs = new BaseClass(); if (Static4(bs) != 2044) { Console.WriteLine("Test 4 failed."); return(104); } if (Static5(bs) != 2044) { Console.WriteLine("Test 5 failed."); return(105); } Console.WriteLine("Passed"); return(100); }
private static int Main() { CoClass co = new CoClass(); if (Static1(co) != 444) { Console.WriteLine("Test 1 failed."); return 101; } if (Static2(co) != 444) { Console.WriteLine("Test 2 failed."); return 102; } if (Static3(co) != 444) { Console.WriteLine("Test 3 failed."); return 103; } BaseClass bs = new BaseClass(); if (Static4(bs) != 2044) { Console.WriteLine("Test 4 failed."); return 104; } if (Static5(bs) != 2044) { Console.WriteLine("Test 5 failed."); return 105; } Console.WriteLine("Passed"); return 100; }