public bool Any(Func<KeyValuePair<string, HtmlAttribute>, bool> func = null) { return func == null ? _attributes.Any() : _attributes.Any(func); }
public void ImplementAnyMethod() { var attributes = new HtmlAttributes(new { }); Assert.IsFalse(attributes.Any()); attributes["test"] = "test"; Assert.IsTrue(attributes.Any()); Assert.IsFalse(attributes.Any(x => x.Key == "fail")); }