Наследование: Animal
Пример #1
0
 public void CastingToAModulesBaseClassWillResolveAndCastThatModule()
 {
     var outer = new Cat();
     dynamic value = new DelegatingObject( DateTime.Now, outer, 10 );
     Animal animal = value;
     Assert.AreSame( outer, animal );
 }
Пример #2
0
 public void CastingToABaseClassWithADelegatingObjectInTheModuleChainCastsSuccessfully()
 {
     var outer = new Cat();
     dynamic value = new DelegatingObject( outer, new DelegatingObject() );
     Animal animal = value;
     Assert.AreSame( outer, animal );
 }
Пример #3
0
 public CheshireCat( Cat cat = null )
     : base(cat)
 {
 }