override public System.Object Clone() { TypeAttributeImpl impl = new TypeAttributeImpl(); impl.type = type; return(impl); }
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()); }
override public System.Object Clone() { TypeAttributeImpl impl = new TypeAttributeImpl(); impl.type = type; return impl; }