Inheritance: Animal
Exemplo n.º 1
0
 public void CastingToAModulesBaseClassWillResolveAndCastThatModule()
 {
     var outer = new Cat();
     dynamic value = new DelegatingObject( DateTime.Now, outer, 10 );
     Animal animal = value;
     Assert.AreSame( outer, animal );
 }
Exemplo n.º 2
0
 public void CastingToABaseClassWithADelegatingObjectInTheModuleChainCastsSuccessfully()
 {
     var outer = new Cat();
     dynamic value = new DelegatingObject( outer, new DelegatingObject() );
     Animal animal = value;
     Assert.AreSame( outer, animal );
 }
Exemplo n.º 3
0
 public CheshireCat( Cat cat = null )
     : base(cat)
 {
 }