Tutorial Getting Started

This tutorial uses the AirportDemo solution that is provided with the Visual COBOL Samples.

If you are not already familiar with the Airport demo, we recommend that you familiarize yourself with its layout and working before embarking on this tutorial.

As you will be adding new code to the solution, you will take a copy of the supplied demo:

  1. Create a working directory on your machine, for example c:\tutorials.
  2. Browse to the location of the AirportDemo sample solution: %PUBLIC%\Documents\Micro Focus\Visual COBOL\Samples\COBOL
  3. Copy the entire AirportDemo directory, and paste it into the c:\tutorials working directory.
    Note: There is also an AirportMFUnitDemo directory, which contains a solution similar to the one that you will end up with after completing the tutorial. Do not select that directory at this point.
  4. In Visual Studio, click File > Open > Project/Solution, navigate to the c:\tutorials\AirportDemo directory, then select AirportDemo.sln and click Open.

    The solution is opened.

  5. Review the projects that are in the solution; they are:
    AirportConsoleApplication
    The startup project for the application. It contains the user interface elements of the application, but not any application logic that we will be unit testing.
    AirportLinkLibrary
    The project that contains the main logic for the application. It contains the code that we will be unit testing. This project must be of type Link Library.

Once you have familiarized yourself with the contents and structure of the solution, you are ready to create a unit testing project, and add test cases to it.