Ejemplo n.º 1
0
 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));
 }
Ejemplo n.º 2
0
 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));
     });
 }