Unit Testing tutorial does not work at referencing the Sandbox project
I Just purchased Rider and I was trying out the tutorials. The first that I tried was for Unit Testing but I simply cannot get past the second step because the Test project will not link to the Sandbox project using the steps mentioned in the tutorial. It states
"Note: If you copy-paste these statements to the unit test file, the Calculator usages will be highlighted as unresolved because the Sandbox project is not referenced in our test project. You can press Alt+Enter on a highlighted usage of Calculator to add the missing project reference and the required using directive."
I press Alt+Enter but there is nothing offering me to link to the other project. See the screenshot below. Am I missing something?
Please sign in to leave a comment.
Hello,
Could you please clarify what is the exact version of Rider you are using? Does it happen each time or was it only once when you tried to follow tutorial? Could you please also share a screenshot of the window when you create UnitTest project? Thank you in advance!
I am using Rider 2020.1.0 (on Windows 10 home) - I think I see what happened now. There are two options to create a Unit test project. One in .NET Core and one in just .NET. I picked the .NET version earlier and not .NET core. Only the .NET core works.
Although now when I "run all" the tests as instructed the tests show up below and then completely disappear. But it may be because I do not have .NET core 2.1 and was trying on 3.1.
You mean all tests disappear from Unit tests window right after run? Can you reproduce it? Does it look better if you install .NET Core 2.1?
Yes, it is very reproducible, I tried it 3-4 times as I thought there was something I missed. The tests never fully run. They show up with question marks and then just disappear (I suppose when they start to run), then there no way to run it again for the test to show up unless one completely restarts the tutorial. However, it just disappears at the same step. I haven't tried to install .NET Core 2.1 as it does not install when you install .NET core through Rider (which is odd since the tutorial depends upon it). I have no reason to install .NET Core 2.1 except to run this tutorial so it seemed like some needless clutter to add to my machine. Instead, I just gave up on the tutorial.
If you decide to give it one more try then we would appreciate you reproducing the issue and collect the logs via Help | Collect logs and attaching them with a new issue on our bug tracker for further investigation. Thank you in advance!