public void CreateFromAnonymousObject()
{
var attributes = new HtmlAttributes(new {
text = "some text",
num = 123
});
Assert.AreEqual("num=\"123\" text=\"some text\"", attributes.ToString());
}