// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
//

using Xunit;
namespace DefaultNamespace
{
    //@BEGINRENAME; Verify this renames
    using System.Security;
    //@ENDRENAME; Verify this renames
    using System;

    public class TestClass
    {
        public static int iExitCode;

        protected void TestMain()
        {
            int caught = 0;
            //int fincount = 0;

            try
            {
                throw new ArgumentException();
            }
            catch (ArgumentException /*e1*/)
            {
                caught++;
                try
                {
                    throw new SecurityException();
                }
                catch (SecurityException /*e2*/)
                {
                }
                finally
                {
                    try
                    {
                        throw new NullReferenceException();
                    }
                    catch (Exception /*e3*/)
                    {
                    }

                }

            }


        }

        [Fact]
        public static void TestEntryPoint()
        {
            (new TestClass()).TestMain();
            Console.WriteLine("Passed.");
        }

    };
};

