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(); } }
public void ShouldNotRegisterAbstractType() { _container.Register <IRegisterableType, AbstractType>(); }