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")); }