public void NoUnexpectedReceived() { lock (m_Lock) { ProcessExpectedLogs(); var unhandledLog = AllLogs.FirstOrDefault(x => !x.IsHandled); if (unhandledLog != null) { throw new UnhandledLogMessageException(unhandledLog); } } }