문제

how could i pass an object in my unit test? here's my code:

    [Test]          
    [Row( "test",5,new CustomField())]      
    public void Test_Constructor(string type, int number, CustomField customField)
    {
       .....
    }

it returns an error: An attribute argument must be a constant expression, typeof expression or array creation expression of an attribute parameter type

도움이 되었습니까?
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top