* Fix Path.GetRelativePath throws ArgumentNullException when relativeTo is empty string
* Code review fixes
Commit migrated from https://github.com/dotnet/corefx/commit/
249b5122a33ea08d2d00581ed691642c18ce1448
ignoreLineEndingDifferences: false,
ignoreWhiteSpaceDifferences: false);
}
+
+ [Fact]
+ public static void GetRelativePath_InvalidArgs()
+ {
+ AssertExtensions.Throws<ArgumentNullException>("relativeTo", null, () => Path.GetRelativePath(null, "."));
+ AssertExtensions.Throws<ArgumentException>("relativeTo", null, () => Path.GetRelativePath(string.Empty, "."));
+ }
}
}