public void GAAP_GetLabelRoles() { TestTaxonomy_2005_02_28 s = new TestTaxonomy_2005_02_28(); s.Load(US_GAAP_FILE); int errors = 0; s.Parse(out errors); Assert.AreEqual(0, errors); ArrayList roles = s.GetLabelRoles(false, out errors); Assert.AreEqual(0, errors); Assert.AreEqual(8, roles.Count); Assert.AreEqual("documentation", roles[0]); Assert.AreEqual("label", roles[1]); Assert.AreEqual("periodEndLabel", roles[3]); Assert.AreEqual("periodStartLabel", roles[4]); Assert.AreEqual("terseLabel", roles[6]); Assert.AreEqual("totalLabel", roles[7]); }
public void GAAP_GetLabelRoles() { TestTaxonomy_2005_02_28 s = new TestTaxonomy_2005_02_28(); s.Load( US_GAAP_FILE ); int errors = 0; s.Parse(out errors); Assert.AreEqual(0, errors); ArrayList roles = s.GetLabelRoles(false, out errors); Assert.AreEqual( 0, errors ); Assert.AreEqual( 8, roles.Count ); Assert.AreEqual( "documentation", roles[0] ); Assert.AreEqual( "label", roles[1] ); Assert.AreEqual( "periodEndLabel", roles[3] ); Assert.AreEqual( "periodStartLabel", roles[4] ); Assert.AreEqual( "terseLabel", roles[6] ); Assert.AreEqual( "totalLabel", roles[7] ); }