给我的某个函数传递的是错误的参数值。
The wrong parameter value is being passed to one of my functions.
但是,如果你给它错误的参数,你可以测试失败!
But if you give it bad parameters, you can test that it fails!
这极为简单,使用错误的参数类型调用构造函数或方法时,会引发异常。
This is extremely simplistic and leads to an exception being thrown when a constructor or method is called with the wrong argument types.
应用推荐