public void TryNewWithParameters([NotNull] Type type, bool expectFail, [CanBeNull, ItemCanBeNull] params object[] arguments) { ConstructorTestHelpers.TryNewWithParameters( type, expectFail, (out object instance, out Exception exception, object[] args) => TypeExtensions.TryNew(type, out instance, out exception, args), arguments); }
public void TryNewWithParameters([NotNull] Type type, bool expectFail, [CanBeNull, ItemCanBeNull] params object[] arguments) { ConstructorTestHelpers.TryNewWithParameters( type, expectFail, (out object instance, out Exception exception, object[] args) => { var immediateType = new ImmediateType(type); return(immediateType.TryNew(out instance, out exception, args)); }, arguments); }