remove invalid System.IO.FileSystem.Watcher tests (#66296)
authorAdam Sitnik <adam.sitnik@gmail.com>
Mon, 7 Mar 2022 17:39:04 +0000 (18:39 +0100)
committerGitHub <noreply@github.com>
Mon, 7 Mar 2022 17:39:04 +0000 (18:39 +0100)
src/libraries/System.IO.FileSystem.Watcher/tests/Args.FileSystemEventArgs.cs
src/libraries/System.IO.FileSystem.Watcher/tests/Args.RenamedEventArgs.cs

index 16c731a..8b63e13 100644 (file)
@@ -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)
index d15ec08..2084c6c 100644 (file)
@@ -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)]