I cannot run Nunit in the newest .NET. Here are all the steps I do:
Content:
using NUnit.Framework;
namespace MyNunitTest
{
[TestFixture]
public class TestClass
{
[Test]
public void TestMethod()
{
Assert.That(true, Is.True);
}
}
}
Error:
System.IO.FileNotFoundException: Could not load file or assembly MyNunitTest.dll or one of its dependencies. The system cannot find the file specified.
The solution for the main problem here is that the wrong project type has been chosen.
To add a unit test project add a new Unit test project instead of a class library or any other type of project. Everything will work as expected.