NUnit TestCase with Generics

后端 未结 9 833
梦毁少年i
梦毁少年i 2021-01-31 13:53

Is there any way to pass generic types using a TestCase to a test in NUnit?

This is what I would like to do but the syntax is not correct...

<         


        
9条回答
  •  礼貌的吻别
    2021-01-31 14:49

    As might be testing with generic functions that return objects?. Example:

    public Empleado TestObjetoEmpleado(Empleado objEmpleado) 
    {
        return objEmpleado; 
    }
    

    Thanks

提交回复
热议问题