/[gr2lib]/trunk/gr2lib_UnitTest/Program.cs
ViewVC logotype

Diff of /trunk/gr2lib_UnitTest/Program.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 50 by william, Thu Jul 15 07:39:22 2010 UTC revision 58 by william, Thu Jul 15 08:24:01 2010 UTC
# Line 8  using gr2lib.core.exceptions; Line 8  using gr2lib.core.exceptions;
8    
9  namespace gr2lib_UnitTest  namespace gr2lib_UnitTest
10  {  {
11        
12      class Program      class Program
13      {      {
14          static void Main(string[] args)          static void Main(string[] args)
# Line 15  namespace gr2lib_UnitTest Line 16  namespace gr2lib_UnitTest
16              try              try
17              {              {
18                  // Setup access to check loaded Granny2 API Version                  // Setup access to check loaded Granny2 API Version
19                  granny2apiversion apiversion = new granny2apiversion();                  granny2apiversion apiversion = new granny2apiversion(shared.EXPECTED_API_VERSION);
20    
21                  // Check if the Loaded API Version Matches                  // Check if the Loaded API Version Matches
22                  if (!apiversion.apiversionsmatch)                  if (!apiversion.apiversionsmatch)
# Line 36  namespace gr2lib_UnitTest Line 37  namespace gr2lib_UnitTest
37              }              }
38              catch (granny2apiloadexception ex)              catch (granny2apiloadexception ex)
39              {              {
40                  Console.WriteLine(ex.Message);                  Console.WriteLine(ex.ToString());
41                }
42                catch (Exception ex)
43                {
44                    Console.WriteLine(ex.ToString());
45              }              }
46          }          }
47      }      }

Legend:
Removed from v.50  
changed lines
  Added in v.58

  ViewVC Help
Powered by ViewVC 1.1.22