Пример #1
0
    static Test()
    {
        // Create test writer object to hold expected output
        StringWriter expectedOut = new StringWriter();

        // Write expected output to string writer object
        Exception[] expList = new Exception[] {
            new GenException <int>(),
            new GenException <double>(),
            new GenException <string>(),
            new GenException <object>(),
            new GenException <Exception>()
        };
        for (int i = 0; i < expList.Length; i++)
        {
            expectedOut.WriteLine("in try");
            expectedOut.WriteLine("  in try");
            expectedOut.WriteLine("  in catch: " + expList[i].Message);
            expectedOut.WriteLine("in catch: " + expList[i].Message);
            expectedOut.WriteLine("{0}", true);
        }

        // Create and initialize test log object
        testLog = new TestUtil.TestLog(expectedOut);
    }
    static Class1()
    {
        // Create test writer object to hold expected output
        System.IO.StringWriter expectedOut = new System.IO.StringWriter();

        // Write expected output to string writer object
        expectedOut.WriteLine("in main try");
        expectedOut.WriteLine("  in middle1 L1A");
        expectedOut.WriteLine("  in middle1 try");
        expectedOut.WriteLine("  in middle1 finally");
        expectedOut.WriteLine("    in middle2 L2A");
        expectedOut.WriteLine("    in middle2 try");
        expectedOut.WriteLine("    in middle2 finally");
        expectedOut.WriteLine("    in middle2 L2A");
        expectedOut.WriteLine("    in middle2 try");
        expectedOut.WriteLine("    in middle2 finally");
        expectedOut.WriteLine("    in middle2 L2A");
        expectedOut.WriteLine("    in middle2 try");
        expectedOut.WriteLine("    in middle2 finally");
        expectedOut.WriteLine("in main catch");
        expectedOut.WriteLine("in main finally");

        // Create and initialize test log object
        testLog = new TestUtil.TestLog(expectedOut);
    }
    static Class1()
    {
        // Create test writer object to hold expected output
        System.IO.StringWriter expectedOut = new System.IO.StringWriter();

        // Write expected output to string writer object
        expectedOut.WriteLine("in main try");
        expectedOut.WriteLine("  in middle1 L1A");
        expectedOut.WriteLine("  in middle1 try");
        expectedOut.WriteLine("  in middle1 finally");
        expectedOut.WriteLine("    in middle2 L2A");
        expectedOut.WriteLine("    in middle2 try");
        expectedOut.WriteLine("    in middle2 finally");
        expectedOut.WriteLine("    in middle2 L2A");
        expectedOut.WriteLine("    in middle2 try");
        expectedOut.WriteLine("    in middle2 finally");
        expectedOut.WriteLine("    in middle2 L2A");
        expectedOut.WriteLine("    in middle2 try");
        expectedOut.WriteLine("    in middle2 finally");
        expectedOut.WriteLine("in main catch");
        expectedOut.WriteLine("in main finally");

        // Create and initialize test log object
        testLog = new TestUtil.TestLog(expectedOut);
    }
Пример #4
0
    static a()
    {
        // Create test writer object to hold expected output
        System.IO.StringWriter expectedOut = new System.IO.StringWriter();

        // Write expected output to string writer object
        expectedOut.WriteLine("In try, throwing");
        expectedOut.WriteLine("In finally, throwing");
        expectedOut.WriteLine("Pass");

        // Create and initialize test log object
        testLog = new TestUtil.TestLog(expectedOut);
    }
Пример #5
0
    static a()
    {
        // Create test writer object to hold expected output
        System.IO.StringWriter expectedOut = new System.IO.StringWriter();

        // Write expected output to string writer object
        expectedOut.WriteLine("In middle method, throwing");
        expectedOut.WriteLine("Caught");
        expectedOut.WriteLine("Pass");

        // Create and initialize test log object
        testLog = new TestUtil.TestLog(expectedOut);
    }
Пример #6
0
    static simple()
    {
        // Create test writer object to hold expected output
        System.IO.StringWriter expectedOut = new System.IO.StringWriter();

        // Write expected output to string writer object
        expectedOut.WriteLine("Begin test...");
        expectedOut.WriteLine("In main try");
        expectedOut.WriteLine("In main catch");
        expectedOut.WriteLine("In inner try");
        expectedOut.WriteLine("End test...");
        // Create and initialize test log object
        testLog = new TestUtil.TestLog(expectedOut);
    }
Пример #7
0
    static a()
    {
        // Create test writer object to hold expected output
        System.IO.StringWriter expectedOut = new System.IO.StringWriter();

        // Write expected output to string writer object
        expectedOut.WriteLine("Main: In Try");
        expectedOut.WriteLine("In try");
        expectedOut.WriteLine("In finally");
        expectedOut.WriteLine("Main: Caught the exception");

        // Create and initialize test log object
        testLog = new TestUtil.TestLog(expectedOut);
    }
Пример #8
0
    static Test()
    {
        // Create test writer object to hold expected output
        System.IO.StringWriter expectedOut = new System.IO.StringWriter();

        // Write expected output to string writer object
        expectedOut.WriteLine(" try");
        expectedOut.WriteLine("\t try");
        expectedOut.WriteLine("\t finally");
        expectedOut.WriteLine(" catch");

        // Create and initialize test log object
        testLog = new TestUtil.TestLog(expectedOut);
    }
Пример #9
0
    static a()
    {
        // Create test writer object to hold expected output
        System.IO.StringWriter expectedOut = new System.IO.StringWriter();

        // Write expected output to string writer object
        expectedOut.WriteLine("Main: In Try");
        expectedOut.WriteLine("In try");
        expectedOut.WriteLine("In finally");
        expectedOut.WriteLine("Main: Caught the exception");

        // Create and initialize test log object
        testLog = new TestUtil.TestLog(expectedOut);
    }
Пример #10
0
    static Test()
    {
        // Create test writer object to hold expected output
        System.IO.StringWriter expectedOut = new System.IO.StringWriter();

        // Write expected output to string writer object
        expectedOut.WriteLine(" try");
        expectedOut.WriteLine("\t try");
        expectedOut.WriteLine("\t finally");
        expectedOut.WriteLine(" catch");

        // Create and initialize test log object
        testLog = new TestUtil.TestLog(expectedOut);
    }
    static simple()
    {
        // Create test writer object to hold expected output
        System.IO.StringWriter expectedOut = new System.IO.StringWriter();

        // Write expected output to string writer object
        expectedOut.WriteLine("Begin test...");
        expectedOut.WriteLine("In main try");
        expectedOut.WriteLine("In main catch");
        expectedOut.WriteLine("In inner try");
        expectedOut.WriteLine("End test...");
        // Create and initialize test log object
        testLog = new TestUtil.TestLog(expectedOut);
    }
Пример #12
0
    static a()
    {
        // Create test writer object to hold expected output
        System.IO.StringWriter expectedOut = new System.IO.StringWriter();

        // Write expected output to string writer object
        expectedOut.WriteLine("In outer try");
        expectedOut.WriteLine("In outer finally");
        expectedOut.WriteLine("In inner try");
        expectedOut.WriteLine("In inner finally");
        expectedOut.WriteLine("Pass");

        // Create and initialize test log object
        testLog = new TestUtil.TestLog(expectedOut);
    }
Пример #13
0
    static Class1()
    {
        // Create test writer object to hold expected output
        System.IO.StringWriter expectedOut = new System.IO.StringWriter();

        // Write expected output to string writer object
        expectedOut.WriteLine("Caught an exception");
        expectedOut.WriteLine("In finally, i = 3");
        expectedOut.WriteLine("In finally, i = 4");
        expectedOut.WriteLine("In finally, i = 5");
        expectedOut.WriteLine("In finally, i = 6");

        // Create and initialize test log object
        testLog = new TestUtil.TestLog(expectedOut);
    }
Пример #14
0
    static Class1()
    {
        // Create test writer object to hold expected output
        System.IO.StringWriter expectedOut = new System.IO.StringWriter();

        // Write expected output to string writer object
        expectedOut.WriteLine("In main try...");
        expectedOut.WriteLine("In main finally...");
        expectedOut.WriteLine("In inner try 1...");
        expectedOut.WriteLine("In inner try 2...");
        expectedOut.WriteLine("Back in inner try 1...");
        expectedOut.WriteLine("Now in inner finally...");
        // Create and initialize test log object
        testLog = new TestUtil.TestLog(expectedOut);
    }
Пример #15
0
    static Test()
    {
        // Create test writer object to hold expected output
        System.IO.StringWriter expectedOut = new System.IO.StringWriter();

        // Write expected output to string writer object
        expectedOut.WriteLine("in the try block");
        expectedOut.WriteLine("{0} {1} {2} {3} {4} {5} {6} {7} {8} {9} {10} {11} {12} {13} {14} {15} {16} {17} {18}  {19} {20} {21} {22} {23} {24} {25} {26} {27} {28} {29} {30} {31} {32} ", 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33);
        expectedOut.WriteLine("Expected Test Exception");
        expectedOut.WriteLine("in catch now");
        expectedOut.WriteLine("in finally now");

        // Create and initialize test log object
        testLog = new TestUtil.TestLog(expectedOut);
    }
Пример #16
0
    static Class1()
    {
        // Create test writer object to hold expected output
        System.IO.StringWriter expectedOut = new System.IO.StringWriter();

        // Write expected output to string writer object
        expectedOut.WriteLine("Caught an exception");
        expectedOut.WriteLine("In finally, i = 3");
        expectedOut.WriteLine("In finally, i = 4");
        expectedOut.WriteLine("In finally, i = 5");
        expectedOut.WriteLine("In finally, i = 6");

        // Create and initialize test log object
        testLog = new TestUtil.TestLog(expectedOut);
    }
Пример #17
0
    static Class1()
    {
        // Create test writer object to hold expected output
        System.IO.StringWriter expectedOut = new System.IO.StringWriter();

        // Write expected output to string writer object
        expectedOut.WriteLine("In main try...");
        expectedOut.WriteLine("In main finally...");
        expectedOut.WriteLine("In inner try 1...");
        expectedOut.WriteLine("In inner try 2...");
        expectedOut.WriteLine("Back in inner try 1...");
        expectedOut.WriteLine("Now in inner finally...");
        // Create and initialize test log object
        testLog = new TestUtil.TestLog(expectedOut);
    }
Пример #18
0
    static Test()
    {
        // Create test writer object to hold expected output
        System.IO.StringWriter expectedOut = new System.IO.StringWriter();

        // Write expected output to string writer object
        expectedOut.WriteLine("in the try block");
        expectedOut.WriteLine("{0} {1} {2} {3} {4} {5} {6} {7} {8} {9} {10} {11} {12} {13} {14} {15} {16} {17} {18}  {19} {20} {21} {22} {23} {24} {25} {26} {27} {28} {29} {30} {31} {32} ", 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33);
        expectedOut.WriteLine("Expected Test Exception");
        expectedOut.WriteLine("in catch now");
        expectedOut.WriteLine("in finally now");

        // Create and initialize test log object
        testLog = new TestUtil.TestLog(expectedOut);
    }
Пример #19
0
    static Test()
    {
        // Create test writer object to hold expected output
        System.IO.StringWriter expectedOut = new System.IO.StringWriter();

        // Write expected output to string writer object
        expectedOut.WriteLine("arr[1] at 0x1 is 2");
        expectedOut.WriteLine("arr[2] at 0x2 is 3");
        expectedOut.WriteLine("arr[3] at 0x3 is 4");
        expectedOut.WriteLine("arr[4] at 0x4 is 5");
        expectedOut.WriteLine("After try");
        expectedOut.WriteLine("Done");

        // Create and initialize test log object
        testLog = new TestUtil.TestLog(expectedOut);
    }
Пример #20
0
    static Test()
    {
        // Create test writer object to hold expected output
        System.IO.StringWriter expectedOut = new System.IO.StringWriter();

        // Write expected output to string writer object
        expectedOut.WriteLine("arr[1] at 0x1 is 2");
        expectedOut.WriteLine("arr[2] at 0x2 is 3");
        expectedOut.WriteLine("arr[3] at 0x3 is 4");
        expectedOut.WriteLine("arr[4] at 0x4 is 5");
        expectedOut.WriteLine("After try");
        expectedOut.WriteLine("Done");

        // Create and initialize test log object
        testLog = new TestUtil.TestLog(expectedOut);
    }
    static Class1()
    {
        // Create test writer object to hold expected output
        System.IO.StringWriter expectedOut = new System.IO.StringWriter();

        // Write expected output to string writer object
        expectedOut.WriteLine("in main try");
        expectedOut.WriteLine("-in foo try [1]");
        expectedOut.WriteLine("--in foo try [2]");
        expectedOut.WriteLine("--in foo finally [2]");
        expectedOut.WriteLine("-in foo catch [1]");
        expectedOut.WriteLine("-in foo finally [1]");
        expectedOut.WriteLine("in main catch");

        // Create and initialize test log object
        testLog = new TestUtil.TestLog(expectedOut);
    }
Пример #22
0
    static Class1()
    {
        // Create test writer object to hold expected output
        System.IO.StringWriter expectedOut = new System.IO.StringWriter();

        // Write expected output to string writer object
        expectedOut.WriteLine("in main try");
        expectedOut.WriteLine("-in foo try [1]");
        expectedOut.WriteLine("--in foo try [2]");
        expectedOut.WriteLine("--in foo finally [2]");
        expectedOut.WriteLine("-in foo catch [1]");
        expectedOut.WriteLine("-in foo finally [1]");
        expectedOut.WriteLine("in main catch");

        // Create and initialize test log object
        testLog = new TestUtil.TestLog(expectedOut);
    }
    static test()
    {
        // Create test writer object to hold expected output
        System.IO.StringWriter expectedOut = new System.IO.StringWriter();

        // Write expected output to string writer object
        expectedOut.WriteLine("In try1");
        expectedOut.WriteLine("In catch1");
        expectedOut.WriteLine("In try2");
        expectedOut.WriteLine("In try3");
        expectedOut.WriteLine("In catch3");
        expectedOut.WriteLine("In finally2");
        expectedOut.WriteLine("In finally1");
        expectedOut.WriteLine("Done");
        // Create and initialize test log object
        testLog = new TestUtil.TestLog(expectedOut);
    }
    static test()
    {
        // Create test writer object to hold expected output
        System.IO.StringWriter expectedOut = new System.IO.StringWriter();

        // Write expected output to string writer object
        expectedOut.WriteLine("In try1");
        expectedOut.WriteLine("In catch1");
        expectedOut.WriteLine("In try2");
        expectedOut.WriteLine("In try3");
        expectedOut.WriteLine("In catch3");
        expectedOut.WriteLine("In finally2");
        expectedOut.WriteLine("In finally1");
        expectedOut.WriteLine("Done");
        // Create and initialize test log object
        testLog = new TestUtil.TestLog(expectedOut);
    }
Пример #25
0
    static Class1()
    {
        // Create test writer object to hold expected output
        System.IO.StringWriter expectedOut = new System.IO.StringWriter();

        // Write expected output to string writer object
        expectedOut.WriteLine("in main try");
        expectedOut.WriteLine("-in foo try [1]");
        expectedOut.WriteLine("--in foo try [2]");
        expectedOut.WriteLine("---in foo try [3]");
        expectedOut.WriteLine("----in foo try [4]");
        expectedOut.WriteLine("-----in foo try [5]");
        expectedOut.WriteLine("------in foo try [6]");
        expectedOut.WriteLine("-------in foo try [7]");
        expectedOut.WriteLine("--------in foo try [8]");
        expectedOut.WriteLine("---------in foo try [9]");
        expectedOut.WriteLine("----------in foo try [10]");
        expectedOut.WriteLine("-----------in foo try [11]");
        expectedOut.WriteLine("------------in foo try [12]");
        expectedOut.WriteLine("-------------in foo try [13]");
        expectedOut.WriteLine("--------------in foo try [14]");
        expectedOut.WriteLine("---------------in foo try [15]");
        expectedOut.WriteLine("----------------in foo try [16]");
        expectedOut.WriteLine("-----------------in foo try [17]");
        expectedOut.WriteLine("------------------in foo try [18]");
        expectedOut.WriteLine("-------------------in foo try [19]");
        expectedOut.WriteLine("--------------------in foo try [20]");
        expectedOut.WriteLine("---------------------in foo try [21]");
        expectedOut.WriteLine("----------------------in foo try [22]");
        expectedOut.WriteLine("-----------------------in foo try [23]");
        expectedOut.WriteLine("------------------------in foo try [24]");
        expectedOut.WriteLine("-------------------------in foo try [25]");
        expectedOut.WriteLine("--------------------------in foo try [26]");
        expectedOut.WriteLine("---------------------------in foo try [27]");
        expectedOut.WriteLine("----------------------------in foo try [28]");
        expectedOut.WriteLine("-----------------------------in foo try [29]");
        expectedOut.WriteLine("------------------------------in foo try [30]");
        expectedOut.WriteLine("-------------------------------in foo try [31]");
        expectedOut.WriteLine("--------------------------------in foo try [32]");
        expectedOut.WriteLine("---------------------------------in foo try [33]");
        expectedOut.WriteLine("----------------------------------in foo try [34]");
        expectedOut.WriteLine("-----------------------------------in foo try [35]");
        expectedOut.WriteLine("------------------------------------in foo try [36]");
        expectedOut.WriteLine("-------------------------------------in foo try [37]");
        expectedOut.WriteLine("--------------------------------------in foo try [38]");
        expectedOut.WriteLine("---------------------------------------in foo try [39]");
        expectedOut.WriteLine("----------------------------------------in foo try [40]");
        expectedOut.WriteLine("-----------------------------------------in foo try [41]");
        expectedOut.WriteLine("------------------------------------------in foo try [42]");
        expectedOut.WriteLine("-------------------------------------------in foo try [43]");
        expectedOut.WriteLine("--------------------------------------------in foo try [44]");
        expectedOut.WriteLine("---------------------------------------------in foo try [45]");
        expectedOut.WriteLine("----------------------------------------------in foo try [46]");
        expectedOut.WriteLine("-----------------------------------------------in foo try [47]");
        expectedOut.WriteLine("------------------------------------------------in foo try [48]");
        expectedOut.WriteLine("-------------------------------------------------in foo try [49]");
        expectedOut.WriteLine("--------------------------------------------------in foo try [50]");
        expectedOut.WriteLine("--------------------------------------------------in foo finally [50]");
        expectedOut.WriteLine("-------------------------------------------------in foo catch [49]");
        expectedOut.WriteLine("-------------------------------------------------in foo finally [49]");
        expectedOut.WriteLine("------------------------------------------------in foo catch [48]");
        expectedOut.WriteLine("------------------------------------------------in foo finally [48]");
        expectedOut.WriteLine("-----------------------------------------------in foo catch [47]");
        expectedOut.WriteLine("-----------------------------------------------in foo finally [47]");
        expectedOut.WriteLine("----------------------------------------------in foo catch [46]");
        expectedOut.WriteLine("----------------------------------------------in foo finally [46]");
        expectedOut.WriteLine("---------------------------------------------in foo catch [45]");
        expectedOut.WriteLine("---------------------------------------------in foo finally [45]");
        expectedOut.WriteLine("--------------------------------------------in foo catch [44]");
        expectedOut.WriteLine("--------------------------------------------in foo finally [44]");
        expectedOut.WriteLine("-------------------------------------------in foo catch [43]");
        expectedOut.WriteLine("-------------------------------------------in foo finally [43]");
        expectedOut.WriteLine("------------------------------------------in foo catch [42]");
        expectedOut.WriteLine("------------------------------------------in foo finally [42]");
        expectedOut.WriteLine("-----------------------------------------in foo catch [41]");
        expectedOut.WriteLine("-----------------------------------------in foo finally [41]");
        expectedOut.WriteLine("----------------------------------------in foo catch [40]");
        expectedOut.WriteLine("----------------------------------------in foo finally [40]");
        expectedOut.WriteLine("---------------------------------------in foo catch [39]");
        expectedOut.WriteLine("---------------------------------------in foo finally [39]");
        expectedOut.WriteLine("--------------------------------------in foo catch [38]");
        expectedOut.WriteLine("--------------------------------------in foo finally [38]");
        expectedOut.WriteLine("-------------------------------------in foo catch [37]");
        expectedOut.WriteLine("-------------------------------------in foo finally [37]");
        expectedOut.WriteLine("------------------------------------in foo catch [36]");
        expectedOut.WriteLine("------------------------------------in foo finally [36]");
        expectedOut.WriteLine("-----------------------------------in foo catch [35]");
        expectedOut.WriteLine("-----------------------------------in foo finally [35]");
        expectedOut.WriteLine("----------------------------------in foo catch [34]");
        expectedOut.WriteLine("----------------------------------in foo finally [34]");
        expectedOut.WriteLine("---------------------------------in foo catch [33]");
        expectedOut.WriteLine("---------------------------------in foo finally [33]");
        expectedOut.WriteLine("--------------------------------in foo catch [32]");
        expectedOut.WriteLine("--------------------------------in foo finally [32]");
        expectedOut.WriteLine("-------------------------------in foo catch [31]");
        expectedOut.WriteLine("-------------------------------in foo finally [31]");
        expectedOut.WriteLine("------------------------------in foo catch [30]");
        expectedOut.WriteLine("------------------------------in foo finally [30]");
        expectedOut.WriteLine("-----------------------------in foo catch [29]");
        expectedOut.WriteLine("-----------------------------in foo finally [29]");
        expectedOut.WriteLine("----------------------------in foo catch [28]");
        expectedOut.WriteLine("----------------------------in foo finally [28]");
        expectedOut.WriteLine("---------------------------in foo catch [27]");
        expectedOut.WriteLine("---------------------------in foo finally [27]");
        expectedOut.WriteLine("--------------------------in foo catch [26]");
        expectedOut.WriteLine("--------------------------in foo finally [26]");
        expectedOut.WriteLine("-------------------------in foo catch [25]");
        expectedOut.WriteLine("-------------------------in foo finally [25]");
        expectedOut.WriteLine("------------------------in foo catch [24]");
        expectedOut.WriteLine("------------------------in foo finally [24]");
        expectedOut.WriteLine("-----------------------in foo catch [23]");
        expectedOut.WriteLine("-----------------------in foo finally [23]");
        expectedOut.WriteLine("----------------------in foo catch [22]");
        expectedOut.WriteLine("----------------------in foo finally [22]");
        expectedOut.WriteLine("---------------------in foo catch [21]");
        expectedOut.WriteLine("---------------------in foo finally [21]");
        expectedOut.WriteLine("--------------------in foo catch [20]");
        expectedOut.WriteLine("--------------------in foo finally [20]");
        expectedOut.WriteLine("-------------------in foo catch [19]");
        expectedOut.WriteLine("-------------------in foo finally [19]");
        expectedOut.WriteLine("------------------in foo catch [18]");
        expectedOut.WriteLine("------------------in foo finally [18]");
        expectedOut.WriteLine("-----------------in foo catch [17]");
        expectedOut.WriteLine("-----------------in foo finally [17]");
        expectedOut.WriteLine("----------------in foo catch [16]");
        expectedOut.WriteLine("----------------in foo finally [16]");
        expectedOut.WriteLine("---------------in foo catch [15]");
        expectedOut.WriteLine("---------------in foo finally [15]");
        expectedOut.WriteLine("--------------in foo catch [14]");
        expectedOut.WriteLine("--------------in foo finally [14]");
        expectedOut.WriteLine("-------------in foo catch [13]");
        expectedOut.WriteLine("-------------in foo finally [13]");
        expectedOut.WriteLine("------------in foo catch [12]");
        expectedOut.WriteLine("------------in foo finally [12]");
        expectedOut.WriteLine("-----------in foo catch [11]");
        expectedOut.WriteLine("-----------in foo finally [11]");
        expectedOut.WriteLine("----------in foo catch [10]");
        expectedOut.WriteLine("----------in foo finally [10]");
        expectedOut.WriteLine("---------in foo catch [9]");
        expectedOut.WriteLine("---------in foo finally [9]");
        expectedOut.WriteLine("--------in foo catch [8]");
        expectedOut.WriteLine("--------in foo finally [8]");
        expectedOut.WriteLine("-------in foo catch [7]");
        expectedOut.WriteLine("-------in foo finally [7]");
        expectedOut.WriteLine("------in foo catch [6]");
        expectedOut.WriteLine("------in foo finally [6]");
        expectedOut.WriteLine("-----in foo catch [5]");
        expectedOut.WriteLine("-----in foo finally [5]");
        expectedOut.WriteLine("----in foo catch [4]");
        expectedOut.WriteLine("----in foo finally [4]");
        expectedOut.WriteLine("---in foo catch [3]");
        expectedOut.WriteLine("---in foo finally [3]");
        expectedOut.WriteLine("--in foo catch [2]");
        expectedOut.WriteLine("--in foo finally [2]");
        expectedOut.WriteLine("-in foo catch [1]");
        expectedOut.WriteLine("-in foo finally [1]");
        expectedOut.WriteLine("in main catch");

        // Create and initialize test log object
        testLog = new TestUtil.TestLog(expectedOut);
    }
    static Class1()
    {
        // Create test writer object to hold expected output
        System.IO.StringWriter expectedOut = new System.IO.StringWriter();

        // Write expected output to string writer object
        expectedOut.WriteLine("in main try");
        expectedOut.WriteLine("-in foo try");
        expectedOut.WriteLine("--in foo try");
        expectedOut.WriteLine("---in foo try");
        expectedOut.WriteLine("----in foo try");
        expectedOut.WriteLine("-----in foo try");
        expectedOut.WriteLine("------in foo try");
        expectedOut.WriteLine("-------in foo try");
        expectedOut.WriteLine("--------in foo try");
        expectedOut.WriteLine("---------in foo try");
        expectedOut.WriteLine("----------in foo try");
        expectedOut.WriteLine("-----------in foo try");
        expectedOut.WriteLine("------------in foo try");
        expectedOut.WriteLine("-------------in foo try");
        expectedOut.WriteLine("--------------in foo try");
        expectedOut.WriteLine("---------------in foo try");
        expectedOut.WriteLine("----------------in foo try");
        expectedOut.WriteLine("-----------------in foo try");
        expectedOut.WriteLine("------------------in foo try");
        expectedOut.WriteLine("-------------------in foo try");
        expectedOut.WriteLine("--------------------in foo try");
        expectedOut.WriteLine("---------------------in foo try");
        expectedOut.WriteLine("----------------------in foo try");
        expectedOut.WriteLine("-----------------------in foo try");
        expectedOut.WriteLine("------------------------in foo try");
        expectedOut.WriteLine("-------------------------in foo try");
        expectedOut.WriteLine("--------------------------in foo try");
        expectedOut.WriteLine("---------------------------in foo try");
        expectedOut.WriteLine("----------------------------in foo try");
        expectedOut.WriteLine("-----------------------------in foo try");
        expectedOut.WriteLine("------------------------------in foo try");
        expectedOut.WriteLine("------------------------------in foo finally");
        expectedOut.WriteLine("------------------------------foo L30");
        expectedOut.WriteLine("-----------------------------in foo finally");
        expectedOut.WriteLine("------------------------------in foo try");
        expectedOut.WriteLine("------------------------------in foo finally");
        expectedOut.WriteLine("------------------------------throwing an exception [i = 0]");
        expectedOut.WriteLine("----------------------------in foo finally");
        expectedOut.WriteLine("-----------------------------in foo try");
        expectedOut.WriteLine("-----------------------------throwing an exception [i = 0]");
        expectedOut.WriteLine("-----------------------------in foo catch");
        expectedOut.WriteLine("-----------------------------in foo finally");
        expectedOut.WriteLine("-----------------------------throwing an exception [i = 1]");
        expectedOut.WriteLine("---------------------------in foo finally");
        expectedOut.WriteLine("----------------------------in foo try");
        expectedOut.WriteLine("----------------------------throwing an exception [i = 1]");
        expectedOut.WriteLine("----------------------------in foo catch");
        expectedOut.WriteLine("----------------------------in foo finally");
        expectedOut.WriteLine("----------------------------throwing an exception [i = 2]");
        expectedOut.WriteLine("--------------------------in foo finally");
        expectedOut.WriteLine("---------------------------in foo try");
        expectedOut.WriteLine("---------------------------throwing an exception [i = 2]");
        expectedOut.WriteLine("---------------------------in foo catch");
        expectedOut.WriteLine("---------------------------in foo finally");
        expectedOut.WriteLine("---------------------------throwing an exception [i = 3]");
        expectedOut.WriteLine("-------------------------in foo finally");
        expectedOut.WriteLine("--------------------------in foo try");
        expectedOut.WriteLine("--------------------------throwing an exception [i = 3]");
        expectedOut.WriteLine("--------------------------in foo catch");
        expectedOut.WriteLine("--------------------------in foo finally");
        expectedOut.WriteLine("--------------------------throwing an exception [i = 4]");
        expectedOut.WriteLine("------------------------in foo finally");
        expectedOut.WriteLine("-------------------------in foo try");
        expectedOut.WriteLine("-------------------------throwing an exception [i = 4]");
        expectedOut.WriteLine("-------------------------in foo catch");
        expectedOut.WriteLine("-------------------------in foo finally");
        expectedOut.WriteLine("-------------------------throwing an exception [i = 5]");
        expectedOut.WriteLine("-----------------------in foo finally");
        expectedOut.WriteLine("------------------------in foo try");
        expectedOut.WriteLine("------------------------throwing an exception [i = 5]");
        expectedOut.WriteLine("------------------------in foo catch");
        expectedOut.WriteLine("------------------------in foo finally");
        expectedOut.WriteLine("------------------------throwing an exception [i = 6]");
        expectedOut.WriteLine("----------------------in foo finally");
        expectedOut.WriteLine("-----------------------in foo try");
        expectedOut.WriteLine("-----------------------throwing an exception [i = 6]");
        expectedOut.WriteLine("-----------------------in foo catch");
        expectedOut.WriteLine("-----------------------in foo finally");
        expectedOut.WriteLine("-----------------------throwing an exception [i = 7]");
        expectedOut.WriteLine("---------------------in foo finally");
        expectedOut.WriteLine("----------------------in foo try");
        expectedOut.WriteLine("----------------------throwing an exception [i = 7]");
        expectedOut.WriteLine("----------------------in foo catch");
        expectedOut.WriteLine("----------------------in foo finally");
        expectedOut.WriteLine("----------------------throwing an exception [i = 8]");
        expectedOut.WriteLine("--------------------in foo finally");
        expectedOut.WriteLine("---------------------in foo try");
        expectedOut.WriteLine("---------------------throwing an exception [i = 8]");
        expectedOut.WriteLine("---------------------in foo catch");
        expectedOut.WriteLine("---------------------in foo finally");
        expectedOut.WriteLine("---------------------throwing an exception [i = 9]");
        expectedOut.WriteLine("-------------------in foo finally");
        expectedOut.WriteLine("--------------------in foo try");
        expectedOut.WriteLine("--------------------throwing an exception [i = 9]");
        expectedOut.WriteLine("--------------------in foo catch");
        expectedOut.WriteLine("--------------------in foo finally");
        expectedOut.WriteLine("--------------------throwing an exception [i = 10]");
        expectedOut.WriteLine("------------------in foo finally");
        expectedOut.WriteLine("-------------------in foo try");
        expectedOut.WriteLine("-------------------throwing an exception [i = 10]");
        expectedOut.WriteLine("-------------------in foo catch");
        expectedOut.WriteLine("-------------------in foo finally");
        expectedOut.WriteLine("-------------------throwing an exception [i = 11]");
        expectedOut.WriteLine("-----------------in foo finally");
        expectedOut.WriteLine("------------------in foo try");
        expectedOut.WriteLine("------------------throwing an exception [i = 11]");
        expectedOut.WriteLine("------------------in foo catch");
        expectedOut.WriteLine("------------------in foo finally");
        expectedOut.WriteLine("------------------throwing an exception [i = 12]");
        expectedOut.WriteLine("----------------in foo finally");
        expectedOut.WriteLine("-----------------in foo try");
        expectedOut.WriteLine("-----------------throwing an exception [i = 12]");
        expectedOut.WriteLine("-----------------in foo catch");
        expectedOut.WriteLine("-----------------in foo finally");
        expectedOut.WriteLine("-----------------throwing an exception [i = 13]");
        expectedOut.WriteLine("---------------in foo finally");
        expectedOut.WriteLine("----------------in foo try");
        expectedOut.WriteLine("----------------throwing an exception [i = 13]");
        expectedOut.WriteLine("----------------in foo catch");
        expectedOut.WriteLine("----------------in foo finally");
        expectedOut.WriteLine("----------------throwing an exception [i = 14]");
        expectedOut.WriteLine("--------------in foo finally");
        expectedOut.WriteLine("---------------in foo try");
        expectedOut.WriteLine("---------------throwing an exception [i = 14]");
        expectedOut.WriteLine("---------------in foo catch");
        expectedOut.WriteLine("---------------in foo finally");
        expectedOut.WriteLine("---------------throwing an exception [i = 15]");
        expectedOut.WriteLine("-------------in foo finally");
        expectedOut.WriteLine("--------------in foo try");
        expectedOut.WriteLine("--------------throwing an exception [i = 15]");
        expectedOut.WriteLine("--------------in foo catch");
        expectedOut.WriteLine("--------------in foo finally");
        expectedOut.WriteLine("--------------throwing an exception [i = 16]");
        expectedOut.WriteLine("------------in foo finally");
        expectedOut.WriteLine("-------------in foo try");
        expectedOut.WriteLine("-------------throwing an exception [i = 16]");
        expectedOut.WriteLine("-------------in foo catch");
        expectedOut.WriteLine("-------------in foo finally");
        expectedOut.WriteLine("-------------throwing an exception [i = 17]");
        expectedOut.WriteLine("-----------in foo finally");
        expectedOut.WriteLine("------------in foo try");
        expectedOut.WriteLine("------------throwing an exception [i = 17]");
        expectedOut.WriteLine("------------in foo catch");
        expectedOut.WriteLine("------------in foo finally");
        expectedOut.WriteLine("------------throwing an exception [i = 18]");
        expectedOut.WriteLine("----------in foo finally");
        expectedOut.WriteLine("-----------in foo try");
        expectedOut.WriteLine("-----------throwing an exception [i = 18]");
        expectedOut.WriteLine("-----------in foo catch");
        expectedOut.WriteLine("-----------in foo finally");
        expectedOut.WriteLine("-----------throwing an exception [i = 19]");
        expectedOut.WriteLine("---------in foo finally");
        expectedOut.WriteLine("----------in foo try");
        expectedOut.WriteLine("----------throwing an exception [i = 19]");
        expectedOut.WriteLine("----------in foo catch");
        expectedOut.WriteLine("----------in foo finally");
        expectedOut.WriteLine("----------throwing an exception [i = 20]");
        expectedOut.WriteLine("--------in foo finally");
        expectedOut.WriteLine("---------in foo try");
        expectedOut.WriteLine("---------throwing an exception [i = 20]");
        expectedOut.WriteLine("---------in foo catch");
        expectedOut.WriteLine("---------in foo finally");
        expectedOut.WriteLine("---------throwing an exception [i = 21]");
        expectedOut.WriteLine("-------in foo finally");
        expectedOut.WriteLine("--------in foo try");
        expectedOut.WriteLine("--------throwing an exception [i = 21]");
        expectedOut.WriteLine("--------in foo catch");
        expectedOut.WriteLine("--------in foo finally");
        expectedOut.WriteLine("--------throwing an exception [i = 22]");
        expectedOut.WriteLine("------in foo finally");
        expectedOut.WriteLine("-------in foo try");
        expectedOut.WriteLine("-------throwing an exception [i = 22]");
        expectedOut.WriteLine("-------in foo catch");
        expectedOut.WriteLine("-------in foo finally");
        expectedOut.WriteLine("-------throwing an exception [i = 23]");
        expectedOut.WriteLine("-----in foo finally");
        expectedOut.WriteLine("------in foo try");
        expectedOut.WriteLine("------throwing an exception [i = 23]");
        expectedOut.WriteLine("------in foo catch");
        expectedOut.WriteLine("------in foo finally");
        expectedOut.WriteLine("------throwing an exception [i = 24]");
        expectedOut.WriteLine("----in foo finally");
        expectedOut.WriteLine("-----in foo try");
        expectedOut.WriteLine("-----throwing an exception [i = 24]");
        expectedOut.WriteLine("-----in foo catch");
        expectedOut.WriteLine("-----in foo finally");
        expectedOut.WriteLine("-----throwing an exception [i = 25]");
        expectedOut.WriteLine("---in foo finally");
        expectedOut.WriteLine("----in foo try");
        expectedOut.WriteLine("----throwing an exception [i = 25]");
        expectedOut.WriteLine("----in foo catch");
        expectedOut.WriteLine("----in foo finally");
        expectedOut.WriteLine("----throwing an exception [i = 26]");
        expectedOut.WriteLine("--in foo finally");
        expectedOut.WriteLine("---in foo try");
        expectedOut.WriteLine("---throwing an exception [i = 26]");
        expectedOut.WriteLine("---in foo catch");
        expectedOut.WriteLine("---in foo finally");
        expectedOut.WriteLine("---throwing an exception [i = 27]");
        expectedOut.WriteLine("-in foo finally");
        expectedOut.WriteLine("--in foo try");
        expectedOut.WriteLine("--throwing an exception [i = 27]");
        expectedOut.WriteLine("--in foo catch");
        expectedOut.WriteLine("--in foo finally");
        expectedOut.WriteLine("--throwing an exception [i = 28]");
        expectedOut.WriteLine("in main catch");

        // Create and initialize test log object
        testLog = new TestUtil.TestLog(expectedOut);
    }