DI 2.0.0

FYI the message can be `RegExp`: `.toThrowWith(new RegExp(r'static|dynamic'));` - may be it can help here ?