private void BufferRenameEvent(object _, RenamedEventArgs e) { if (!_fileSystemEventBuffer.TryAdd(e)) { var ex = new EventQueueOverflowException($"Event queue size {_fileSystemEventBuffer.BoundedCapacity} events exceeded."); InvokeHandler(_onErrorHandler, new ErrorEventArgs(ex)); } }
public void EventQueueOverflowExceptionMessage() { var exception = new EventQueueOverflowException("message"); Assert.AreEqual("message", exception.Message); }
public void EventQueueOverflowException() { var exception = new EventQueueOverflowException(); Assert.AreEqual($"Exception of type '{typeof(EventQueueOverflowException)}' was thrown.", exception.Message); }