Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

using Microsoft.VisualStudio.TestTools.UnitTesting;

Simply trying to add using Microsoft.VisualStudio.TestTools.UnitTesting; to an existing VS Community 2017 project so I can implement Unit testing.

I've googled and the solution seems to be to right click your project and 'Add>Reference'

But when I do so I see the attached under Assemblies https://i.sstatic.net/6IEth.jpg

(No Framework Assemblies were found on the machine.

Can any VS gurus help?

like image 454
Bachalo Avatar asked Sep 28 '26 03:09

Bachalo


1 Answers

You need to add a reference in VS.
In Nuget Package Manager search for and install MSTest.TestFramework. This will allow you to "using" Microsoft.VisualStudio.TestTools.UnitTesting ..

Good luck

like image 83
Myvryn Avatar answered Sep 29 '26 16:09

Myvryn



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!