コード例 #1
0
 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);
 }
コード例 #2
0
 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);
 }