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