public void CreateFromDictionary() { var attributes = new HtmlAttributes(new Dictionary<string, object> { {"text", "some text"}, {"num", 123} }); Assert.AreEqual("num=\"123\" text=\"some text\"", attributes.ToString()); }