From: Adam Sitnik Date: Mon, 7 Mar 2022 17:39:04 +0000 (+0100) Subject: remove invalid System.IO.FileSystem.Watcher tests (#66296) X-Git-Tag: accepted/tizen/unified/riscv/20231226.055536~10467 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=88c2a664c211d6562a1bc89ab15a890608181bdf;p=platform%2Fupstream%2Fdotnet%2Fruntime.git remove invalid System.IO.FileSystem.Watcher tests (#66296) --- diff --git a/src/libraries/System.IO.FileSystem.Watcher/tests/Args.FileSystemEventArgs.cs b/src/libraries/System.IO.FileSystem.Watcher/tests/Args.FileSystemEventArgs.cs index 16c731a..8b63e13 100644 --- a/src/libraries/System.IO.FileSystem.Watcher/tests/Args.FileSystemEventArgs.cs +++ b/src/libraries/System.IO.FileSystem.Watcher/tests/Args.FileSystemEventArgs.cs @@ -65,16 +65,6 @@ namespace System.IO.Tests } [Theory] - [PlatformSpecific(TestPlatforms.Windows)] - [InlineData("C:", "foo.txt")] - public static void FileSystemEventArgs_ctor_RelativePathFromCurrentDirectoryInGivenDrive(string directory, string name) - { - FileSystemEventArgs args = new FileSystemEventArgs(WatcherChangeTypes.All, directory, name); - - Assert.Equal(Path.Combine(Directory.GetCurrentDirectory(), name), args.FullPath); - } - - [Theory] [InlineData("bar", "")] [InlineData("bar", null)] public static void FileSystemEventArgs_ctor_When_EmptyFileName_Then_FullPathReturnsTheDirectoryFullPath_WithTrailingSeparator(string directory, string name) diff --git a/src/libraries/System.IO.FileSystem.Watcher/tests/Args.RenamedEventArgs.cs b/src/libraries/System.IO.FileSystem.Watcher/tests/Args.RenamedEventArgs.cs index d15ec08..2084c6c 100644 --- a/src/libraries/System.IO.FileSystem.Watcher/tests/Args.RenamedEventArgs.cs +++ b/src/libraries/System.IO.FileSystem.Watcher/tests/Args.RenamedEventArgs.cs @@ -68,16 +68,6 @@ namespace System.IO.Tests } [Theory] - [PlatformSpecific(TestPlatforms.Windows)] - [InlineData("C:", "foo.txt", "bar.txt")] - public static void RenamedEventArgs_ctor_OldFullPath_DirectoryIsRelativePathFromCurrentDirectoryInGivenDrive(string directory, string name, string oldName) - { - RenamedEventArgs args = new RenamedEventArgs(WatcherChangeTypes.All, directory, name, oldName); - - Assert.Equal(Path.Combine(Directory.GetCurrentDirectory(), oldName), args.OldFullPath); - } - - [Theory] [InlineData("bar", "", "")] [InlineData("bar", null, null)] [InlineData("bar", "foo.txt", null)]