
#Eagetmail reference add in vb net code
Now you should see the new class in the code window.
Enter "BasicArithmeticsTests.vb" as the name. First we create a new class in the test project:. A test fixture is a class which contains test methods which will be executed by csUnit. In this step we will set up a test fixture. The tree for the test project should look like this in the solution explorer now:. In the Projects tab select "M圜alculator" as reference to be added:. NET tab select the item with the component name "csUnit" by double clicking or by marking it with a left mouse click and pressing the "Select" button: In the Solution Explorer Right-Click the "References" node of the project "M圜alculatorTests". In order to let the test project know where it can find the classes that it shall use (csUnit classes and the classes from the class library to be tested) we need to set up references to these Projects/Assemblies. The Steps are the same as for the test project: Now we will set up the project which we are going to test. The solution contains one empty project now and should look like this:. So we delete "Class1" from the project (you can do this by right-clicking on the class name in the Solution Explorer and selecting "Delete"). It has shown to be the fastest way to delete this class and to add the own ones later. Unfortunately VS.NET always creates its default class (called "Class1") when you add a project. Select "File Add Project New Project Visual Basic Projects Class Library". It will find test methods through the attributes we give them.
This project will be a class library because csUnit does not need a special entry point. Now our first step will be to set up the project which contains the tests. Click "OK" and the empty solution will be created.Specify a folder of your choice to store the solution in.Enter "M圜alculator" as the solution name.Then you will see the "New Project" Window Select "File New Blank Solution" from the Pull down menu.Here is a list to give you a quick overview on what we are going to do: This tutorial assumes that you have installed: In this tutorial we will look at the steps needed to test and develop a VB.NET class library using csUnit.