public static void TestResolveRelativePaths()
{
string path = Path.GetRandomFileName();
bool shouldDelete = !File.Exists(path);
File.Open(path, FileMode.OpenOrCreate).Dispose();
try
{
XmlReader.Create(path).Dispose();
XmlReader.Create(Path.Combine(".", path)).Dispose();
}
finally
{
if (shouldDelete)
{
File.Delete(path);
}
}
}