Наследование: DelegatingObject, IDisposable
Пример #1
0
 public void CastingToAnInterfaceWhenThereIsAConflictPrefersTheRootObjectOverModules()
 {
     dynamic value = new DisposableDelegatingObject( new DisposableObject() );
     IDisposable instance = value;
     Assert.AreSame( value, instance );
 }
Пример #2
0
 public void CanCastToImplementedInterface()
 {
     dynamic value = new DisposableDelegatingObject();
     IDisposable instance = value;
     Assert.IsNotNull( instance );
 }