/[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

--- trunk/gr2lib_UnitTest/Program.cs	2010/07/15 08:23:36	57
+++ trunk/gr2lib_UnitTest/Program.cs	2010/07/15 08:24:01	58
@@ -8,6 +8,7 @@
 
 namespace gr2lib_UnitTest
 {
+    
     class Program
     {
         static void Main(string[] args)
@@ -15,7 +16,7 @@
             try
             {
                 // Setup access to check loaded Granny2 API Version
-                granny2apiversion apiversion = new granny2apiversion();
+                granny2apiversion apiversion = new granny2apiversion(shared.EXPECTED_API_VERSION);
 
                 // Check if the Loaded API Version Matches
                 if (!apiversion.apiversionsmatch)
@@ -36,7 +37,11 @@
             }
             catch (granny2apiloadexception ex)
             {
-                Console.WriteLine(ex.Message);
+                Console.WriteLine(ex.ToString());
+            }
+            catch (Exception ex)
+            {
+                Console.WriteLine(ex.ToString());
             }
         }
     }

 

  ViewVC Help
Powered by ViewVC 1.1.22