ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/gr2lib/trunk/gr2lib_UnitTest/Program.cs
Revision: 16
Committed: Wed Jul 14 09:23:41 2010 UTC (12 years, 2 months ago) by william
File size: 768 byte(s)
Log Message:
Check if - Loaded Granny2 API Version Matches API Version that was built against

File Contents

# User Rev Content
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 16 Granny2APIVersion _version = new Granny2APIVersion();
15    
16     if (!_version.APIVersionsMatch)
17     {
18     Console.WriteLine("Warning:\n" +
19     "\t Loaded Granny2 DLL Version: " + _version.APIVersion.Version + "\n" +
20     "\t Expected Version: " + _version.ExpectedAPIVersion.Version);
21     }
22     else
23     {
24     Console.WriteLine("Loaded granny2.dll: " + _version.APIVersion.Version);
25     }
26 william 9 }
27     }
28     }