Beispiel #1
0
 public void CanGetDuckCastBinding()
 {
     Assert.That(DuckValueBindingOption.Get(typeof(Sample), typeof(ISample)).Bindable);
 }
Beispiel #2
0
 public void CanGetNotBindable()
 {
     Assert.That(DuckValueBindingOption.Get(typeof(int), typeof(object)).Bindable, Is.Not.True);
 }
Beispiel #3
0
 public void CanGetUserConversionBinding()
 {
     Assert.That(DuckValueBindingOption.Get(typeof(int), typeof(UserStruct)).Bindable);
 }
Beispiel #4
0
 public void CanGetImplicitReferenceBinding()
 {
     Assert.That(DuckValueBindingOption.Get(typeof(Array), typeof(object)).Bindable);
 }
Beispiel #5
0
 public void CanGetImplicitNullableBinding()
 {
     Assert.That(DuckValueBindingOption.Get(typeof(int), typeof(int?)).Bindable);
 }
Beispiel #6
0
 public void CanGetImplictNumericBinding()
 {
     Assert.That(DuckValueBindingOption.Get(typeof(int), typeof(long)).Bindable);
 }
Beispiel #7
0
 public void CanGetIdentityBinding()
 {
     Assert.That(DuckValueBindingOption.Get(typeof(int), typeof(int)).Bindable);
 }