public void TryCopy([NotNull] Type type, [CanBeNull] object other, bool expectFail) { ConstructorTestHelpers.TryCopy( type, other, expectFail, (object o, out object instance, out Exception exception) => TypeExtensions.TryCopy(type, o, out instance, out exception)); }
public void TryCopy([NotNull] Type type, [CanBeNull] object other, bool expectFail) { ConstructorTestHelpers.TryCopy( type, other, expectFail, (object o, out object instance, out Exception exception) => { var immediateType = new ImmediateType(type); return(immediateType.TryCopy(o, out instance, out exception)); }); }