/[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 61 by william, Thu Jul 15 08:29:13 2010 UTC revision 65 by william, Thu Jul 15 08:37:02 2010 UTC
# Line 13  namespace gr2lib_UnitTest Line 13  namespace gr2lib_UnitTest
13      {      {
14          static void Main(string[] args)          static void Main(string[] args)
15          {          {
16                string GrannyFilename = shared.GRANNY_TEST_FILE;
17              try              try
18              {              {
19                  // Setup access to check loaded Granny2 API Version                  // Setup access to check loaded Granny2 API Version
# Line 33  namespace gr2lib_UnitTest Line 34  namespace gr2lib_UnitTest
34                      // the loaded version matches                      // the loaded version matches
35                      Console.WriteLine("Loaded granny2.dll: " + apiversion.apiversion.version);                      Console.WriteLine("Loaded granny2.dll: " + apiversion.apiversion.version);
36                  }                  }
37                  // if we have arrived at this point, the loaded api version matches the what the library was built against                  
38                    // parse commandline
39                    if (args.Length == 2)
40                    {
41                        GrannyFilename = args[1];
42                    }
43    
44                    if (System.IO.File.Exists(GrannyFilename))
45                    {
46                        Console.WriteLine("Using Granny2 File: " + GrannyFilename);
47                    }
48                    else
49                    {
50                        throw new System.IO.FileNotFoundException("Unable to find: " + GrannyFilename);
51                    }
52    
53                    
54    
55    
56              }              }

Legend:
Removed from v.61  
changed lines
  Added in v.65

  ViewVC Help
Powered by ViewVC 1.1.22