ActivityUnitTests.ActivityTests.ZipTests.MyClassCleanup C# (CSharp) Method

MyClassCleanup() private method

private MyClassCleanup ( ) : void
return void
        public static void MyClassCleanup()
        {
            if(tempFile != null)
            {
                try
                {
                    File.Delete(tempFile);
                }
                catch(Exception e)
                {
                    if(e.GetType() != typeof(FileNotFoundException))// file not found is fine cos we're deleting
                    {
                        throw;
                    }
                }

                try
                {
                    File.Delete(Path.GetTempPath() + NewFileName + ".zip");
                }
                catch(Exception e)
                {
                    if(e.GetType() != typeof(FileNotFoundException))// file not found is fine cos we're deleting
                    {
                        throw;
                    }
                }
            }
        }