In this recipe, we will create three test cases, starting with two simple tests to test the vehicle and vehicle table code and then a test case for the ConVehicleGroupChange class. These tests should test when it should fail and when it should succeed. This process will involve programmatically creating some test data in order to perform the tests.
Creating a unit test case for code
Getting ready
We will just need the unit test project, which we created in the previous recipe, open. Also, on the main menu, select X64 from Test | Test Setting | Default Processor Architecture.