mirror of
https://github.com/BepInEx/dotnet-runtime.git
synced 2026-11-24 04:11:14 -10:00
Re-enable xunit warning 2017 (dotnet/corefx#40467)
* Re-enable xunit warning 2017 Use specialized assertions for checking for elements in collections. * Revert Re-enable xunit warning 2017, revert some test changes * Address PR feedback Commit migrated from https://github.com/dotnet/corefx/commit/2fc48e13e87a4e68576d7df7af420ac2874e929e
This commit is contained in:
1 parent
972ee8c936
commit
018e1b82e8
28 files changed
+79
-79
No files matched your search
@@ -775,8 +775,8 @@ namespace System.IO.Tests
|
||||
watcher.Filters.Add("*.dll");
|
||||
watcher.Filters.Add(string.Empty);
|
||||
|
||||
Assert.False(watcher.Filters.Contains(string.Empty));
|
||||
Assert.True(watcher.Filters.Contains("*"));
|
||||
Assert.DoesNotContain(string.Empty, watcher.Filters);
|
||||
Assert.Contains("*", watcher.Filters);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
@@ -787,8 +787,8 @@ namespace System.IO.Tests
|
||||
watcher.Filters.Add("*.dll");
|
||||
watcher.Filters.Add(null);
|
||||
|
||||
Assert.False(watcher.Filters.Contains(null));
|
||||
Assert.True(watcher.Filters.Contains("*"));
|
||||
Assert.DoesNotContain(null, watcher.Filters);
|
||||
Assert.Contains("*", watcher.Filters);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
@@ -798,7 +798,7 @@ namespace System.IO.Tests
|
||||
watcher.Filters.Add("*.pdb");
|
||||
watcher.Filters.Add("*.dll");
|
||||
|
||||
Assert.True(watcher.Filters.Contains("*.pdb"));
|
||||
Assert.Contains("*.pdb", watcher.Filters);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
||||
Reference in new issue
Block a user