Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't reference a project to run unit testing on it

I'm runnig through this walkthrough on the Microsoft website. I have gotten up to creating the Unit testing project, here. I just cant seem to reference my project.

I right click on references in my Solution Explorer.

Right CLick

Then I go to solution under the projects tab.

Reference Tab

If I choose the browse I don't know what to find.

What to find

This was no help. Along with other links that I searched.

I just don't know what to do at this point? What am I supposed to look for when browsing to reference my project?

To answer Ayb4btu question. My folder looks like this

UnitTest //Top folder
    Bank //Bank project to be tested
    BankTest //Bank Unit Test project
like image 835
Funlamb Avatar asked Mar 21 '26 00:03

Funlamb


1 Answers

Your solution file has no projects in it other than your test project. Add the project you want to test to your solution, and then you'll be able to take a project reference on it from your test project.

Do this by right clicking the Solution>Add>Existing Project...

like image 109
antiduh Avatar answered Mar 23 '26 16:03

antiduh



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!