how can I use variable string parameter in dotnet test (Visual Studio 2022)
[Test]
public void MyTest(string MyString)
{
Console.WriteLine(MyString);
}
and execute the test by command line with this variable string?
dotnet test "C:MyPathTest.dll" --filter "FullyQualifiedName=QualifyTest.ColorTest("This is my String")
Is it also possible to pass path names like “D:Thisismypath.txt” in the same way?
Should I use [TestCase] or [TestCaseSource] with included parameter instead and how?
I use NUnit 3.0
Thank you.
New contributor
Max is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.