Exemplo n.º 1
0
 public void Should_Not_Register_Abstract_Type()
 {
     try
     {
         _container.Register <IBillingProcessor, AbstractBillingProcessor>();
         //Not Raise the Expected "Exception"
         Assert.Fail();
     }
     catch (InvalidOperationException)
     {
         // Expected "Exception" was Throwed
         Assert.Pass();
     }
     catch (Exception)
     {
         // not raised the right kind of "Exception"
         Assert.Fail();
     }
 }
Exemplo n.º 2
0
 public void ShouldNotRegisterAbstractType()
 {
     _container.Register <IRegisterableType, AbstractType>();
 }