Inheritance: DelegatingObject, IDisposable
Exemple #1
0
 public void CastingToAnInterfaceWhenThereIsAConflictPrefersTheRootObjectOverModules()
 {
     dynamic value = new DisposableDelegatingObject( new DisposableObject() );
     IDisposable instance = value;
     Assert.AreSame( value, instance );
 }
Exemple #2
0
 public void CanCastToImplementedInterface()
 {
     dynamic value = new DisposableDelegatingObject();
     IDisposable instance = value;
     Assert.IsNotNull( instance );
 }