public ListAttributeKeys ( string path ) : List |
||
path | string | Path which should be read. |
return | List |
public void RemoveExtendedAttributeOfFileByPassingNull() { using (File.Create(path)); string key = "test"; var reader = new ExtendedAttributeReaderDos(); reader.SetExtendedAttribute(path, key, null); Assert.That(reader.GetExtendedAttribute(path, key), Is.Null); Assert.That(reader.ListAttributeKeys(path).Count == 0); }
public void ListAttributesOfFolder() { Directory.CreateDirectory(path); string key = "test"; string value = "value"; var reader = new ExtendedAttributeReaderDos(); Assert.That(reader.ListAttributeKeys(path).Count == 0); reader.SetExtendedAttribute(path, key, value); Assert.That(reader.ListAttributeKeys(path).Count == 1); Assert.Contains("test", reader.ListAttributeKeys(path)); }