/[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 17 by william, Wed Jul 14 09:24:48 2010 UTC revision 28 by william, Wed Jul 14 09:55:24 2010 UTC
# Line 11  namespace gr2lib_UnitTest Line 11  namespace gr2lib_UnitTest
11      {      {
12          static void Main(string[] args)          static void Main(string[] args)
13          {          {
14                // Setup access to check loaded Granny2 API Version
15              Granny2APIVersion _version = new Granny2APIVersion();              Granny2APIVersion _version = new Granny2APIVersion();
16    
17                // Check if the Loaded API Version Matches
18              if (!_version.APIVersionsMatch)              if (!_version.APIVersionsMatch)
19              {              {
20                    // the loaded version does not match
21                  Console.WriteLine("Warning:\n" +                  Console.WriteLine("Warning:\n" +
22                      "\t Loaded Granny2 DLL Version: " + _version.APIVersion.Version + "\n" +                      "\t Loaded Granny2 DLL Version: " + _version.APIVersion.Version + "\n" +
23                      "\t Expected Version: " + _version.ExpectedAPIVersion.Version);                      "\t Expected Version: " + _version.ExpectedAPIVersion.Version);
24                    // return from void to exit application
25                  return;                  return;
26              }              }
27              else              else
28              {              {
29                    // the loaded version matches
30                  Console.WriteLine("Loaded granny2.dll: " + _version.APIVersion.Version);                  Console.WriteLine("Loaded granny2.dll: " + _version.APIVersion.Version);
31              }              }
32                // if we have arrived at this point, the loaded api version matches the what the library was built against
33          }          }
34      }      }
35  }  }

Legend:
Removed from v.17  
changed lines
  Added in v.28

  ViewVC Help
Powered by ViewVC 1.1.22