}
[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)
}
[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)]