SIL.FieldWorks.FDO.FDOTests.FdoTestHelper.VerifyBtFootnote C# (CSharp) Method

VerifyBtFootnote() public static method

Make sure the marker for a footnote exists in the back translation and refers to the footnote properly.
public static VerifyBtFootnote ( IStFootnote footnote, IStTxtPara para, int ws, int ich ) : void
footnote IStFootnote given footnote whose marker we want to verify in the BT
para IStTxtPara vernacular paragraph which owns the back translation
ws int writing system of the back transltion
ich int Character position where ORC should be in the specified back /// translation
return void
		public static void VerifyBtFootnote(IStFootnote footnote, IStTxtPara para, int ws, int ich)
		{
			ICmTranslation trans = para.GetBT();
			ITsString btTss = trans.Translation.get_String(ws);
			int iRun = btTss.get_RunAt(ich);

			Guid newFootnoteGuid = TsStringUtils.GetGuidFromRun(btTss, iRun, FwObjDataTypes.kodtNameGuidHot);
			Assert.AreEqual(footnote.Guid, newFootnoteGuid);
		}