ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/gr2lib/trunk/gr2lib_UnitTest/Program.cs
(Generate patch)

Comparing trunk/gr2lib_UnitTest/Program.cs (file contents):
Revision 9 by william, Wed Jul 14 06:31:12 2010 UTC vs.
Revision 16 by william, Wed Jul 14 09:23:41 2010 UTC

--- trunk/gr2lib_UnitTest/Program.cs	2010/07/14 06:31:12	9
+++ trunk/gr2lib_UnitTest/Program.cs	2010/07/14 09:23:41	16
@@ -2,12 +2,27 @@
 using System.Collections.Generic;
 using System.Text;
 
+using gr2lib.core;
+using gr2lib.core.apiversion;
+
 namespace gr2lib_UnitTest
 {
     class Program
     {
         static void Main(string[] args)
         {
+            Granny2APIVersion _version = new Granny2APIVersion();
+
+            if (!_version.APIVersionsMatch)
+            {
+                Console.WriteLine("Warning:\n" +
+                    "\t Loaded Granny2 DLL Version: " + _version.APIVersion.Version + "\n" +
+                    "\t Expected Version: " + _version.ExpectedAPIVersion.Version);
+            }
+            else
+            {
+                Console.WriteLine("Loaded granny2.dll: " + _version.APIVersion.Version);
+            }
         }
     }
 }