/[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 9 by william, Wed Jul 14 06:31:12 2010 UTC revision 16 by william, Wed Jul 14 09:23:41 2010 UTC
# Line 2  Line 2 
2  using System.Collections.Generic;  using System.Collections.Generic;
3  using System.Text;  using System.Text;
4    
5    using gr2lib.core;
6    using gr2lib.core.apiversion;
7    
8  namespace gr2lib_UnitTest  namespace gr2lib_UnitTest
9  {  {
10      class Program      class Program
11      {      {
12          static void Main(string[] args)          static void Main(string[] args)
13          {          {
14                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          }          }
27      }      }
28  }  }

Legend:
Removed from v.9  
changed lines
  Added in v.16

  ViewVC Help
Powered by ViewVC 1.1.22