A
A
aikus2016-11-22 05:39:35
C++ / C#
aikus, 2016-11-22 05:39:35

How to merge a test project with my class library project in VisualStudio?

Good afternoon. I decided to learn C# for myself, but I ran into an unexpected problem - I can't write unit tests, which are very familiar to me.
What I do:
1. Create a C# project for the class library.
2. I create a project for testing.
And I don’t understand how I need to do so that the classes from the first project are visible in the second. Maybe I'm doing something wrong in principle?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anatoliy Mikhailov, 2016-11-22
@aikus

  1. You select in the Solution explorer in your test References
    If something doesn't work, check the version of the framework in both projects - they must match.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question