Beispiel #1
0
 public void TestCompatibleTypes_Common_Interface()
 {
     Assert.IsTrue(DefaultDropHandler_Accessor.TestCompatibleTypes(
                       new List <IInterface>(),
                       new[] { new BaseClass(), new DerivedClassA() }));
 }
Beispiel #2
0
 public void TestCompatibleTypes_Collection_TooDerived()
 {
     Assert.IsFalse(DefaultDropHandler_Accessor.TestCompatibleTypes(
                        new List <DerivedClassA>(),
                        new[] { new BaseClass(), new DerivedClassA() }));
 }
Beispiel #3
0
 public void TestCompatibleTypes_Of_Same_Type()
 {
     Assert.IsTrue(DefaultDropHandler_Accessor.TestCompatibleTypes(
                       new List <string>(),
                       new[] { "Foo", "Bar" }));
 }