public void testIntUnitConversion()
 {
     IntUnit fu = new IntUnit(34, "cm");
     Assert.AreEqual(fu, new IntUnit(fu.ToString()));
 }
 ///////////////////////////////////////////////////////////////////////
 /// <summary>Adds a new attribute of type intUnit.</summary>
 /// <param name="name">attribute name</param>
 /// <param name="value">attribute value</param>
 /// <returns>the newly-created GBaseAttribute object</returns>
 ///////////////////////////////////////////////////////////////////////
 public GBaseAttribute AddIntUnitAttribute(string name, IntUnit value)
 {
     return(Add(new GBaseAttribute(name,
                                   GBaseAttributeType.IntUnit,
                                   value.ToString())));
 }
 ///////////////////////////////////////////////////////////////////////
 /// <summary>Adds a new attribute of type intUnit.</summary>
 /// <param name="name">attribute name</param>
 /// <param name="value">attribute value</param>
 /// <returns>the newly-created GBaseAttribute object</returns>
 ///////////////////////////////////////////////////////////////////////
 public GBaseAttribute AddIntUnitAttribute(string name, IntUnit value)
 {
     return Add(new GBaseAttribute(name,
                                   GBaseAttributeType.IntUnit,
                                   value.ToString()));
 }