public void Post_IncorrectMessage_ReturnThrow() { Action action = () => broker.Post(null); action.Should() .Throw <ArgumentNullException>() .WithMessage($"Value cannot be null. (Parameter 'Сообщение пусто')"); }