ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/gr2lib/trunk/gr2lib_UnitTest/Program.cs
Revision: 38
Committed: Wed Jul 14 18:50:20 2010 UTC (12 years, 10 months ago) by william
File size: 1192 byte(s)
Log Message:
lowercase

File Contents

# Content
1 using System;
2 using System.Collections.Generic;
3 using System.Text;
4
5 using gr2lib.core;
6 using gr2lib.core.apiversion;
7
8 namespace gr2lib_UnitTest
9 {
10 class Program
11 {
12 static void Main(string[] args)
13 {
14 // Setup access to check loaded Granny2 API Version
15 granny2apiversion _version = new granny2apiversion();
16
17 // Check if the Loaded API Version Matches
18 if (!_version.apiversionsmatch)
19 {
20 // the loaded version does not match
21 Console.WriteLine("Warning:\n" +
22 "\t Loaded Granny2 DLL Version: " + _version.apiversion.Version + "\n" +
23 "\t Expected Version: " + _version.expectedapiversion.Version);
24 // return from void to exit application
25 return;
26 }
27 else
28 {
29 // the loaded version matches
30 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 }