private void AssertTagExists(int hvoTag, string msgFailure) { ITextTag tag = null; try { tag = m_tagRepo.GetObject(hvoTag); } catch (KeyNotFoundException) { Assert.Fail(msgFailure); } Assert.IsNotNull(tag.TagRA, msgFailure); }
/// <summary> /// Caches a possibility label for each wordform that a tag appliesTo. /// This version starts from the hvo. /// </summary> /// <param name="hvoTag"></param> /// <returns></returns> internal void CacheTagString(int hvoTag) { var ttag = m_tagRepo.GetObject(hvoTag); CacheTagString(ttag); }