C# 클래스 SIL.FieldWorks.TE.ImportTests.DummyScrObjWrapper

Dummy class for the TeImporter so we can test it. The tests that use the DummyTeImporter do not utilize a scr obj to read real data files. We'll provide this dummy version of the ScrObjWrapper instead, to minimize our overhead.
상속: ScrObjWrapper
파일 보기 프로젝트 열기: sillsdev/FieldWorks 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
m_CurrentWs int
m_SegmentMarkers List

공개 메소드들

메소드 설명
CurrentWs ( int defaultWs ) : int

Since the tests don't actually have a real text enumerator or real files, return a surreal writing sytem.

GetNextSegment ( string &sText, string &sMarker, ImportDomain &domain ) : bool

Advance the scripture text object enumerator to the next segment. This override allows us to test the condition where an unexpected exception occurs during import processing. If m_SegmentMarkers is set to a list of n segments, then this method will throw an exception when asked for segment n+1.

SetCurrentAnnotationType ( int hvoAnnotationType ) : void

Sets the type of the current annotation (to facilitate testing)

보호된 메소드들

메소드 설명
LoadParatextProject ( string paratextProjectId ) : void

For testing, this is a no-op

메소드 상세

CurrentWs() 공개 메소드

Since the tests don't actually have a real text enumerator or real files, return a surreal writing sytem.
public CurrentWs ( int defaultWs ) : int
defaultWs int
리턴 int

GetNextSegment() 공개 메소드

Advance the scripture text object enumerator to the next segment. This override allows us to test the condition where an unexpected exception occurs during import processing. If m_SegmentMarkers is set to a list of n segments, then this method will throw an exception when asked for segment n+1.
public GetNextSegment ( string &sText, string &sMarker, ImportDomain &domain ) : bool
sText string Set to the text of the current segment
sMarker string Set to the marker of the current segment tag
domain ImportDomain Set to the domain of the stream being processed
리턴 bool

LoadParatextProject() 보호된 메소드

For testing, this is a no-op
protected LoadParatextProject ( string paratextProjectId ) : void
paratextProjectId string 3-letter Paratext project ID
리턴 void

SetCurrentAnnotationType() 공개 메소드

Sets the type of the current annotation (to facilitate testing)
public SetCurrentAnnotationType ( int hvoAnnotationType ) : void
hvoAnnotationType int HVO of the type of the current annotation.
리턴 void

프로퍼티 상세

m_CurrentWs 공개적으로 프로퍼티

Set this to simulate an import stream having a specific ICU Locale
public int m_CurrentWs
리턴 int

m_SegmentMarkers 공개적으로 프로퍼티

Optional list of segment markers to process in a simulated import
public List m_SegmentMarkers
리턴 List