RemoveExtendedAttribute() public method

Removes the extended attribute.
public RemoveExtendedAttribute ( string path, string key ) : void
path string Removes attribute from this path.
key string Key of the attribute, which should be removed.
return void
 public void RemoveExtendedAttributeOnNonExistingFileThrowsIOException()
 {
     string key = "test";
     var reader = new ExtendedAttributeReaderDos();
     Assert.Throws<FileNotFoundException>(() => reader.RemoveExtendedAttribute(path, key));
 }
 public void RemoveAttributeFromFolder()
 {
     Directory.CreateDirectory(path);
     string key = "test";
     string value = "value";
     var reader = new ExtendedAttributeReaderDos();
     reader.SetExtendedAttribute(path, key, value);
     Assert.That(reader.GetExtendedAttribute(path, key).Equals(value));
     reader.RemoveExtendedAttribute(path, key);
     Assert.That(reader.GetExtendedAttribute(path, key) == null);
 }