❔ How do I can use my class objects in UnitTest project?
I wanted to try make unit tests for my projects. I'm getting an error with missing directive (CS0246). I had watched many tutorials and thier compiler hadn't problem with loading classes from original project.
I'm using NUnit project added for my Solution (I couldn't do it with Ninject so I changed). I had done the project references. and doesn't work.
Program.cs
(NUnit package was installed from NugGet)
(NUnit package was already installed)
UnitTest1.cs
Usings.cs
Thanks
3 Replies
take the User class outside of Program class
It works.
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.