示例#1
0
 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));
     }
 }
示例#2
0
        public void EventQueueOverflowExceptionMessage()
        {
            var exception = new EventQueueOverflowException("message");

            Assert.AreEqual("message", exception.Message);
        }
示例#3
0
        public void EventQueueOverflowException()
        {
            var exception = new EventQueueOverflowException();

            Assert.AreEqual($"Exception of type '{typeof(EventQueueOverflowException)}' was thrown.", exception.Message);
        }