Пример #1
0
        override public System.Object Clone()
        {
            TypeAttributeImpl impl = new TypeAttributeImpl();

            impl.type = type;
            return(impl);
        }
Пример #2
0
		public virtual void  TestTypeAttribute()
		{
			TypeAttributeImpl att = new TypeAttributeImpl();
			Assert.AreEqual(TypeAttributeImpl.DEFAULT_TYPE, att.Type());
			
			att.SetType("hallo");
			Assert.AreEqual("type=hallo", att.ToString());
			
			TypeAttributeImpl att2 = (TypeAttributeImpl) AssertCloneIsEqual(att);
			Assert.AreEqual("hallo", att2.Type());
			
			att2 = (TypeAttributeImpl) AssertCopyIsEqual(att);
			Assert.AreEqual("hallo", att2.Type());
			
			att.Clear();
			Assert.AreEqual(TypeAttributeImpl.DEFAULT_TYPE, att.Type());
		}
Пример #3
0
		public virtual void  TestTypeAttribute()
		{
			TypeAttributeImpl att = new TypeAttributeImpl();
			Assert.AreEqual(TypeAttributeImpl.DEFAULT_TYPE, att.Type());
			
			att.SetType("hallo");
			Assert.AreEqual("type=hallo", att.ToString());
			
			TypeAttributeImpl att2 = (TypeAttributeImpl) AssertCloneIsEqual(att);
			Assert.AreEqual("hallo", att2.Type());
			
			att2 = (TypeAttributeImpl) AssertCopyIsEqual(att);
			Assert.AreEqual("hallo", att2.Type());
			
			att.Clear();
			Assert.AreEqual(TypeAttributeImpl.DEFAULT_TYPE, att.Type());
		}
Пример #4
0
		override public System.Object Clone()
		{
            TypeAttributeImpl impl = new TypeAttributeImpl();
            impl.type = type;
            return impl;
		}