C# Class SIL.FieldWorks.TE.KeyTermsTests

Inheritance: SIL.FieldWorks.TE.TeTestBase
Exibir arquivo Open project: sillsdev/FieldWorks

Public Methods

Method Description
FixtureSetup ( ) : void

Initializes the tests for testing.

ModifyRunAt ( IStTxtPara para, int ichMin, int ichEnd, string replacement ) : void

Modify the run of the text by the given bounds with the replacement string.

Protected Methods

Method Description
CreateTestData ( ) : void

Private Methods

Method Description
AddBookMark ( ) : IScrBook
AppendMarkOccurrencesToKeyTerm ( IChkTerm keyTerm1 ) : void
AppendRunWithAlternativeVernacularEquivalentForKeyTerm ( IStTxtPara para, string sKeyTerm, string alternative, string verseNumber, int bcv ) : void
ApplyBookFilterToKeyTermsTree ( ) : void
AssignAlternativeRenderingForWordsKeytermInMatthew ( ) : void

Setup "conversation" as an alternative vernacular equivalent to "words"

AssignVernacularEquivalent ( ) : void
AssignVernacularEquivalentForWordsKeytermInMatthew1_1 ( ) : void

Assigns "words" in the draft of Matthew 1:1 to be a vernacular equivalent for "words" keyterm.

AssignVernacularEquivalent_AfterAutoAssign ( ) : void
AssignVernacularEquivalent_AtVerseBridgeEnd ( ) : void
AssignVernacularEquivalent_AtVerseBridgeStart ( ) : void
AssignVernacularEquivalent_MultipleBooks ( ) : void
AssignVernacularEquivalent_WholeWords ( ) : void
AssignVernacularEquivalent_WithFootnoteEmbedded ( ) : void
AssignVernacularEquivalent_WithinVerseBridge ( ) : void
CheckRenderingAndStatus ( string expectedRendering, KeyTermRenderingStatus expectedStatus, IChkRef chkRef ) : void
CheckRenderingsCount ( int expectedCount, TreeNode nodeToSelect ) : void
CreateChkRef ( IChkTerm keyTermPossible, int bcv ) : IChkRef
CreateChkTerm ( string name ) : IChkTerm
CreateSubChkTerm ( IChkTerm parentKeyTerm, string name ) : IChkTerm
LoadRenderingsAndSelectOccurrenceInRenderingCtrl ( IChkTerm term, int iOccurrence ) : IChkRef
ReplaceVerseText ( IStTxtPara para, int bcvToReplace, string replacement, TextSelInfo &tsiBeforeEdit, TextSelInfo &tsiAfterEdit ) : void
SelectTerm ( string sTerm ) : IChkTerm
SelectTermAndOccurrence ( string sTerm, int iOccurrence ) : IChkTerm

Selects the given term in the KT tree and the given occurrence in the list of occurrences.

SelectWordsKeytermInMatthew1_1 ( ) : void
SetCurrentLineInRenderingCtrl ( int index ) : void

SetupKeyTermsForMark ( ) : IChkTerm

Add occurrences to "words" occurrences.

TestTearDown ( ) : void
UpdateKeyTermEquivalents_ChangesForUnassignedOccurrence ( ) : void
UpdateKeyTermEquivalents_ChangesToExplicitlyAssignedOccurrence ( ) : void
UpdateKeyTermEquivalents_ChangesToExplicitlyIgnoredOccurrence ( ) : void
UpdateKeyTermEquivalents_ChangesToImplicitlyAssignedOccurrence ( ) : void
UpdateKeyTermEquivalents_RescanWithNoChanges ( ) : void

Method Details

CreateTestData() protected method

protected CreateTestData ( ) : void
return void

FixtureSetup() public method

Initializes the tests for testing.
public FixtureSetup ( ) : void
return void

ModifyRunAt() public method

Modify the run of the text by the given bounds with the replacement string.
public ModifyRunAt ( IStTxtPara para, int ichMin, int ichEnd, string replacement ) : void
para IStTxtPara
ichMin int
ichEnd int
replacement string
return void