public void IsSymlink_WithSymlink_ReturnsTrue() { var path = new PosixPath("/dev/stdout"); Assert.True(path.IsSymlink()); }
public void IsSymlink_WithDirectory_ReturnsFalse() { var path = new PosixPath("/dev/usb"); Assert.False(path.IsSymlink()); }
public void IsSymlink_WithMissingFile_ReturnsFalse() { var path = new PosixPath(Path.Combine(_fixture.TempFolder, "does-not-exist")); Assert.False(path.IsSymlink()); }
public void IsSymlink_WithFile_ReturnsFalse() { var path = new PosixPath("/dev/mem"); Assert.False(path.IsSymlink()); }