nunit-console does not run tests parameterized with TestCase attribute

前端 未结 1 1633
花落未央
花落未央 2021-01-24 20:21

Trying to run Nunit tests parameterized with TestCase attribute. Something like this:

[TestFixture]
public class MyClass
{
    [Test]
    [TestCase("option1&         


        
1条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-24 21:13

    From what I remember it needs to be quoted a bit differently;

    nunit-console.exe MyProject.dll /run:"MyNamespace.MyClass.Test1(\"option1\")"
    

    0 讨论(0)
提交回复
热议问题