I have written an NUnit test. Now, I need to run those tests from my C# code. My tests are built using .net core 3.1.
I need to invoke two commands from my C# code. 1) dotnet test 2) dotnet test --filter "Category=CategoryA&Category=CategoryB"
How to do this from C#?
I am trying to do something like this
namespace MyNameSpace
{
class MyProgram
{
public void RunTests()
{
//run dotnet test
//run dotnet test --filter "Category=CategoryA&Category=CategoryB"
}
}
}