Inheritance: System.Attribute
Ejemplo n.º 1
0
		public void CtorPropertyNames()
		{
			var e = new ETagAttribute (new[] { "foo", "bar" });
			Assert.AreEqual (2, e.PropertyNames.Count);
			Assert.AreEqual ("foo", e.PropertyNames[0]);
			Assert.AreEqual ("bar", e.PropertyNames[1]);
		}
Ejemplo n.º 2
0
		public void CtorPropertyName()
		{
			var e = new ETagAttribute ("tag");
			Assert.AreEqual (1, e.PropertyNames.Count);
			Assert.AreEqual ("tag", e.PropertyNames.First());
		}