Permalink
Browse files

Updated all FileSystemWatcher events to be virtual, to make them poss…

…ible to raise via mocks.
  • Loading branch information...
KallDrexx committed Feb 23, 2014
1 parent 7aed17b commit 31839795eb0c718ff10e67687e2049f625939006
Showing with 5 additions and 5 deletions.
  1. +5 −5 System.IO.Abstractions/FileSystemWatcherBase.cs
@@ -16,11 +16,11 @@ public abstract class FileSystemWatcherBase : IDisposable
public abstract string Path { get; set; }
public abstract ISite Site { get; set; }
public abstract ISynchronizeInvoke SynchronizingObject { get; set; }
- public event FileSystemEventHandler Changed;
- public event FileSystemEventHandler Created;
- public event FileSystemEventHandler Deleted;
- public event ErrorEventHandler Error;
- public event RenamedEventHandler Renamed;
+ public virtual event FileSystemEventHandler Changed;
+ public virtual event FileSystemEventHandler Created;
+ public virtual event FileSystemEventHandler Deleted;
+ public virtual event ErrorEventHandler Error;
+ public virtual event RenamedEventHandler Renamed;
public abstract void BeginInit();
public abstract void Dispose();
public abstract void EndInit();

0 comments on commit 3183979

Please sign in to comment.