C# Class SIL.FieldWorks.Common.RootSites.TestCollectorEnv

This subclass is used to test whether the call to Display produces anything. Adding literals doesn't count.
Inheritance: CollectorEnv, ICollectPicturePathsOnly
ファイルを表示 Open project: sillsdev/FieldWorks

Public Methods

Method Description
APictureIsBeingAdded ( ) : void

The only thing a test envirnoment cares about pictures is that we got one, so it is not empty.

AddObjProp ( int tag, IVwViewConstructor vc, int frag ) : void

When testing whether anything exists, add notifiers for empty properties if the caller has so requested.

AddObjVec ( int tag, IVwViewConstructor vc, int frag ) : void

When testing whether anything exists, add notifiers for empty vectors if the caller has so requested.

AddReversedObjVecItems ( int tag, IVwViewConstructor vc, int frag ) : void

When testing whether anything exists, add notifiers for empty vectors if the caller has so requested.

AddString ( ITsString tss ) : void

Do nothing. We don't want to count literals in this test class.

AddStringAltMember ( int tag, int ws, IVwViewConstructor _vwvc ) : void

TestCollectorEnv ( IVwEnv baseEnv, ISilDataAccess sda, int hvoRoot ) : System

Initializes a new instance of the T:TestCollectorEnv class.

Protected Methods

Method Description
AddResultString ( string s ) : void

Accumulate a string into our result. The base implementation does nothing.

OpenTheObject ( int hvo, int ihvo ) : void

We need to clear the list for noting string property dependencies any time we're in the context of a different object.

Private Methods

Method Description
NoteEmptyDependency ( int tag ) : void
NoteEmptyObjectDependency ( int tag ) : void
NoteEmptyVectorDependency ( int tag ) : void

Method Details

APictureIsBeingAdded() public method

The only thing a test envirnoment cares about pictures is that we got one, so it is not empty.
public APictureIsBeingAdded ( ) : void
return void

AddObjProp() public method

When testing whether anything exists, add notifiers for empty properties if the caller has so requested.
public AddObjProp ( int tag, IVwViewConstructor vc, int frag ) : void
tag int
vc IVwViewConstructor
frag int
return void

AddObjVec() public method

When testing whether anything exists, add notifiers for empty vectors if the caller has so requested.
public AddObjVec ( int tag, IVwViewConstructor vc, int frag ) : void
tag int
vc IVwViewConstructor
frag int
return void

AddResultString() protected method

Accumulate a string into our result. The base implementation does nothing.
protected AddResultString ( string s ) : void
s string The s.
return void

AddReversedObjVecItems() public method

When testing whether anything exists, add notifiers for empty vectors if the caller has so requested.
public AddReversedObjVecItems ( int tag, IVwViewConstructor vc, int frag ) : void
tag int
vc IVwViewConstructor
frag int
return void

AddString() public method

Do nothing. We don't want to count literals in this test class.
public AddString ( ITsString tss ) : void
tss ITsString The TSS.
return void

AddStringAltMember() public method

public AddStringAltMember ( int tag, int ws, IVwViewConstructor _vwvc ) : void
tag int
ws int
_vwvc IVwViewConstructor
return void

OpenTheObject() protected method

We need to clear the list for noting string property dependencies any time we're in the context of a different object.
protected OpenTheObject ( int hvo, int ihvo ) : void
hvo int
ihvo int
return void

TestCollectorEnv() public method

Initializes a new instance of the T:TestCollectorEnv class.
public TestCollectorEnv ( IVwEnv baseEnv, ISilDataAccess sda, int hvoRoot ) : System
baseEnv IVwEnv The base env.
sda ISilDataAccess Date access to get prop values etc.
hvoRoot int The root object to display, if m_baseEnv is null. /// If baseEnv is not null, hvoRoot is ignored.
return System