private Invoke_NoParameters_ThowsTargetParameterCountException ( ) : void | ||
Résultat | void |
public void Invoke_NoParameters_ThowsTargetParameterCountException()
{
ConstructorInfo[] constructors = GetConstructors(typeof(ClassWith3Constructors));
Assert.Throws<TargetParameterCountException>(() => constructors[2].Invoke(new object[0]));
}