public void Deny_Unrestricted () { // nothing else is required AttributeCollection ac = new AttributeCollection (bag); Assert.AreEqual (0, ac.Count, "Count"); Assert.IsNotNull (ac.CssStyle, "CssStyle"); ac["mono"] = "monkey"; Assert.AreEqual ("monkey", ac["mono"], "this"); Assert.IsNotNull (ac.Keys, "Keys"); ac.Add ("monkey", "mono"); ac.AddAttributes (writer); ac.Clear (); ac.Remove ("mono"); ac.Render (writer); }
public void InitialNoBag6() { AC ac = new AC(null); ac.Clear(); }
public virtual bool ParseAttributes(AttributeCollection c) { c.Clear(); bool res = true; while (CurrentToken != EndOfDocument && CurrentToken.Class == TokenClass.Identifier) { var a = c.New<Attribute>(); if (!ParseAttribute(a)) res = false; } return res; }
public void InitialNoBag6 () { AC ac = new AC (null); ac.Clear (); }