You've already forked linux-packaging-mono
Imported Upstream version 5.16.0.100
Former-commit-id: 38faa55fb9669e35e7d8448b15c25dc447f25767
This commit is contained in:
parent
0a9828183b
commit
7d7f676260
@@ -25,7 +25,6 @@ namespace System.IO.Tests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
[SkipOnTargetFramework(TargetFrameworkMonikers.Mono, "Not working")]
|
||||
public void FileSystemWatcher_NewFileInfoAction_TriggersNothing()
|
||||
{
|
||||
using (var testDirectory = new TempDirectory(GetTestFilePath()))
|
||||
@@ -70,8 +69,8 @@ namespace System.IO.Tests
|
||||
[Fact]
|
||||
public void FileSystemWatcher_ctor()
|
||||
{
|
||||
string path = String.Empty;
|
||||
string pattern = "*.*";
|
||||
string path = string.Empty;
|
||||
string pattern = PlatformDetection.IsFullFramework ? "*.*" : "*";
|
||||
using (FileSystemWatcher watcher = new FileSystemWatcher())
|
||||
ValidateDefaults(watcher, path, pattern);
|
||||
}
|
||||
@@ -80,7 +79,7 @@ namespace System.IO.Tests
|
||||
public void FileSystemWatcher_ctor_path()
|
||||
{
|
||||
string path = @".";
|
||||
string pattern = "*.*";
|
||||
string pattern = PlatformDetection.IsFullFramework ? "*.*" : "*";
|
||||
using (FileSystemWatcher watcher = new FileSystemWatcher(path))
|
||||
ValidateDefaults(watcher, path, pattern);
|
||||
}
|
||||
@@ -183,7 +182,6 @@ namespace System.IO.Tests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
[SkipOnTargetFramework(TargetFrameworkMonikers.Mono, "Not working")]
|
||||
public void FileSystemWatcher_EnableRaisingEvents()
|
||||
{
|
||||
using (var testDirectory = new TempDirectory(GetTestFilePath()))
|
||||
@@ -220,14 +218,14 @@ namespace System.IO.Tests
|
||||
{
|
||||
FileSystemWatcher watcher = new FileSystemWatcher();
|
||||
|
||||
Assert.Equal("*.*", watcher.Filter);
|
||||
Assert.Equal(PlatformDetection.IsFullFramework ? "*.*" : "*", watcher.Filter);
|
||||
|
||||
// Null and empty should be mapped to "*.*"
|
||||
// Null and empty should be mapped to "*"
|
||||
watcher.Filter = null;
|
||||
Assert.Equal("*.*", watcher.Filter);
|
||||
Assert.Equal(PlatformDetection.IsFullFramework ? "*.*" : "*", watcher.Filter);
|
||||
|
||||
watcher.Filter = String.Empty;
|
||||
Assert.Equal("*.*", watcher.Filter);
|
||||
watcher.Filter = string.Empty;
|
||||
Assert.Equal(PlatformDetection.IsFullFramework ? "*.*" : "*", watcher.Filter);
|
||||
|
||||
watcher.Filter = " ";
|
||||
Assert.Equal(" ", watcher.Filter);
|
||||
@@ -245,7 +243,7 @@ namespace System.IO.Tests
|
||||
RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
|
||||
{
|
||||
// expect no change for OrdinalIgnoreCase-equal strings
|
||||
// it's unclear why desktop does this but preserve it for compat
|
||||
// it's unclear why desktop does this but preserve it for compat
|
||||
watcher.Filter = "ABC.DLL";
|
||||
Assert.Equal("abc.dll", watcher.Filter);
|
||||
}
|
||||
@@ -596,7 +594,6 @@ namespace System.IO.Tests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
[SkipOnTargetFramework(TargetFrameworkMonikers.Mono, "Not working")]
|
||||
public void FileSystemWatcher_StopCalledOnBackgroundThreadDoesNotDeadlock()
|
||||
{
|
||||
// Check the case where Stop or Dispose (they do the same thing) is called from
|
||||
|
||||
Reference in New Issue
Block a user