public void Remove_InvalidValue_ThrowsArgumentException(object value, string paramName) { var attribute = new DirectoryAttribute { "value" }; AssertExtensions.Throws <ArgumentException>(paramName, () => attribute.Remove(value)); }
public void Remove_Valid_Success() { var attribute = new DirectoryAttribute { "value" }; attribute.Remove("value"); Assert.Empty(attribute); }
public void Remove_NullValue_ThrowsArgumentNullException() { var attribute = new DirectoryAttribute(); AssertExtensions.Throws <ArgumentNullException>("value", () => attribute.Remove(null)); }