Referencing the Model in the Test Case
Since your Test Cases and Software Models reside in different projects you need to make sure that the test cases "are aware" that the model exists. That means you need to reference the model in your test case projects.
To add a reference to your model perform the following steps:
In your Test Case Project right click on the References node and select Add Reference.. from the context menu
Tick your software version project and press the OK button
Tick your software version project and press the OK button
As the last step you will need to add the model reference in your test case class as follows:
Before the namespace name add the reference to the model:
using MyFirstSoftware_Model;
Before the
[SetupTest]
add a new property: privateMyFirstSoftwareApp App { get; set; }
In the
[SetupTest]
method instantiate your SW model:App = new MyFirstSoftwareApp(t);
After the above mentioned modification your test case will look as follows:
Last updated