コード例 #1
0
 public void ValueTypesAreNotBindable()
 {
     Assert.That(ImplicitReferenceValueBinding.TryBind(typeof(int), typeof(object)), Is.Null);
     Assert.That(ImplicitReferenceValueBinding.TryBind(typeof(object), typeof(int)), Is.Null);
 }
コード例 #2
0
 public void NonAssignableTypesAreNotBindable()
 {
     Assert.That(ImplicitReferenceValueBinding.TryBind(typeof(object), typeof(Array)), Is.Null);
 }
コード例 #3
0
 protected override DuckValueBindingOption TryBind(Type fromType, Type toType)
 {
     return(ImplicitReferenceValueBinding.TryBind(fromType, toType));
 }