public void ValueTypesAreNotBindable() { Assert.That(ImplicitReferenceValueBinding.TryBind(typeof(int), typeof(object)), Is.Null); Assert.That(ImplicitReferenceValueBinding.TryBind(typeof(object), typeof(int)), Is.Null); }
public void NonAssignableTypesAreNotBindable() { Assert.That(ImplicitReferenceValueBinding.TryBind(typeof(object), typeof(Array)), Is.Null); }
protected override DuckValueBindingOption TryBind(Type fromType, Type toType) { return(ImplicitReferenceValueBinding.TryBind(fromType, toType)); }