public void ItIsNotPossibleToAddTranslationWithIncorrectGermanWord(string germanWord) { var command = new AddPolishGermanTranslationCommand("krzesło", germanWord); var handler = new AddPolishGermanTranslationCommandHandler(); var events = new EventRecorder(); Assert.Throws <Exception>(() => { handler.Execute(command, events.Record, () => 1); }); events.AssertAllEvents(e => Assert.IsNotType <PolishGermanTranslationAddedEvent>(e)); }