/[gr2lib]/trunk/gr2lib_UnitTest/Program.cs
ViewVC logotype

Annotation of /trunk/gr2lib_UnitTest/Program.cs

Parent Directory Parent Directory | Revision Log Revision Log


Revision 43 - (hide annotations) (download)
Thu Jul 15 04:37:06 2010 UTC (9 years, 6 months ago) by william
File size: 1192 byte(s)
make all versiontype members lowercase

1 william 9 using System;
2     using System.Collections.Generic;
3     using System.Text;
4    
5 william 16 using gr2lib.core;
6     using gr2lib.core.apiversion;
7    
8 william 9 namespace gr2lib_UnitTest
9     {
10     class Program
11     {
12     static void Main(string[] args)
13     {
14 william 28 // Setup access to check loaded Granny2 API Version
15 william 33 granny2apiversion _version = new granny2apiversion();
16 william 16
17 william 28 // Check if the Loaded API Version Matches
18 william 33 if (!_version.apiversionsmatch)
19 william 16 {
20 william 28 // the loaded version does not match
21 william 16 Console.WriteLine("Warning:\n" +
22 william 43 "\t Loaded Granny2 DLL Version: " + _version.apiversion.version + "\n" +
23     "\t Expected Version: " + _version.expectedapiversion.version);
24 william 28 // return from void to exit application
25 william 17 return;
26 william 16 }
27     else
28     {
29 william 28 // the loaded version matches
30 william 43 Console.WriteLine("Loaded granny2.dll: " + _version.apiversion.version);
31 william 16 }
32 william 28 // if we have arrived at this point, the loaded api version matches the what the library was built against
33 william 9 }
34     }
35     }

  ViewVC Help
Powered by ViewVC 1.1.22