Пример #1
0
		public void Setters ()
		{
			TemplatePartAttribute attr = new TemplatePartAttribute ();
			attr.Name = String.Empty;
			attr.Type = typeof (object);
			Assert.AreEqual (String.Empty, attr.Name, "Name");
			Assert.AreEqual (typeof (object), attr.Type, "Type");
			attr.Name = null;
			attr.Type = null;
			Assert.IsNull (attr.Name, "Name/Null");
			Assert.IsNull (attr.Type, "Type/Null");
		}
Пример #2
0
		public void Defaults ()
		{
			TemplatePartAttribute attr = new TemplatePartAttribute ();
			Assert.IsNull (attr.Name, "Name");
			Assert.IsNull (attr.Type, "Type");
		}