public void TestGetParentAtRoot() { const String path = @"c:\"; var parent = Directory.GetParent(path); Assert.IsNull(parent); }
public void TestGetParent() { var actual = Directory.GetParent(longPathDirectory.Combine("system32")); Assert.AreEqual(longPathDirectory, actual.FullName); }