/[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 43 by william, Thu Jul 15 04:37:06 2010 UTC revision 44 by william, Thu Jul 15 04:37:58 2010 UTC
# Line 12  namespace gr2lib_UnitTest Line 12  namespace gr2lib_UnitTest
12          static void Main(string[] args)          static void Main(string[] args)
13          {          {
14              // Setup access to check loaded Granny2 API Version              // Setup access to check loaded Granny2 API Version
15              granny2apiversion _version = new granny2apiversion();              granny2apiversion apiversion = new granny2apiversion();
16    
17              // Check if the Loaded API Version Matches              // Check if the Loaded API Version Matches
18              if (!_version.apiversionsmatch)              if (!apiversion.apiversionsmatch)
19              {              {
20                  // the loaded version does not match                  // 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: " + apiversion.apiversion.version + "\n" +
23                      "\t Expected Version: " + _version.expectedapiversion.version);                      "\t Expected Version: " + apiversion.expectedapiversion.version);
24                  // return from void to exit application                  // return from void to exit application
25                  return;                  return;
26              }              }
27              else              else
28              {              {
29                  // the loaded version matches                  // the loaded version matches
30                  Console.WriteLine("Loaded granny2.dll: " + _version.apiversion.version);                  Console.WriteLine("Loaded granny2.dll: " + apiversion.apiversion.version);
31              }              }
32              // if we have arrived at this point, the loaded api version matches the what the library was built against              // if we have arrived at this point, the loaded api version matches the what the library was built against
33          }          }

Legend:
Removed from v.43  
changed lines
  Added in v.44

  ViewVC Help
Powered by ViewVC 1.1.22