mirror of
https://github.com/BepInEx/dotnet-runtime.git
synced 2026-11-23 03:39:35 -10:00
Commit migrated from https://github.com/dotnet/corefx/commit/73ab96765fa59e5a1d224ecf804a29379da30c0b
35 lines
739 B
C#
35 lines
739 B
C#
// Copyright (c) Microsoft. All rights reserved.
|
|
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
|
|
using System.IO;
|
|
|
|
public class TestFileSystemWatcher : FileSystemWatcher
|
|
{
|
|
// Helper to expose protected members for testing
|
|
|
|
public void CallOnChanged(FileSystemEventArgs e)
|
|
{
|
|
this.OnChanged(e);
|
|
}
|
|
|
|
public void CallOnCreated(FileSystemEventArgs e)
|
|
{
|
|
this.OnCreated(e);
|
|
}
|
|
|
|
public void CallOnDeleted(FileSystemEventArgs e)
|
|
{
|
|
this.OnDeleted(e);
|
|
}
|
|
|
|
public void CallOnError(ErrorEventArgs e)
|
|
{
|
|
this.OnError(e);
|
|
}
|
|
|
|
public void CallOnRenamed(RenamedEventArgs e)
|
|
{
|
|
this.OnRenamed(e);
|
|
}
|
|
}
|