Answer the question
In order to leave comments, you need to log in
Can't run test method in NUnit?
MSDN had an example with method testing. To do this, it was proposed to create a NET Standard class library, so I did, installed the NUnit package and wrote the simplest method:
[TestFixture]
public static class TestClass
{
[Test]
public static void TestMethod()
{
int a = 10, b = 5;
Assert.Equals(a,b);
}
}
Answer the question
In order to leave comments, you need to log in
I always created a project for tests from a template and there were no problems)
https://docs.microsoft.com/ru-ru/dotnet/core/testi...
For NUnit, it seems that you need to install Runner and Adapter, and there are several of them, and which one is needed - you need to either guess or read.
And you also need to install Microsoft.NET.Test.SDK
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question