상속: 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)
 {
 }