public void ShouldNotRegisterInvalidTypeMapping()
{
// given
var container = new ObjectContainer();
// then
Assert.Catch<InvalidOperationException>(() => container.RegisterTypeAs(typeof(SimpleClassExtendingGenericInterface), typeof(IGenericInterface<>)));
}