/[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/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);
+            }
         }
     }
 }

 

  ViewVC Help
Powered by ViewVC 1.1.22