Beispiel #1
0
		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);
		}
Beispiel #2
0
        public void InitialNoBag6()
        {
            AC ac = new AC(null);

            ac.Clear();
        }
Beispiel #3
0
 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;
 }
Beispiel #4
0
		public void InitialNoBag6 ()
		{
			AC ac = new AC (null);
			ac.Clear ();
		}