'————————————————————————————————————————————— ' Name: Function DoPropertiesConform ' Purpose: Checks if the expected and actual properties match ' Input: ' m_htContextBase (Base Collection - this contains several child collections) ' Output: ' Boolean ' Date: ' Author: Anshoo Arora '————————————————————————————————————————————— Public Function DoPropertiesConform( ByVal m_htContextBase ) '————————————————————————————————————————————— Dim vKeys, intStatus, i, m_ContextTemp, bResult, keysTemp, oTemp, x, sStatus DoPropertiesConform = True vKeys = m_htContextBase.Keys intStatus = micPass For i = 0 to m_htContextBase.Count-1 ' The below will create temporary references to Collection ' In our test, the Collection contains two objects: "Logo" and "UserName" Set m_ContextTemp = m_htContextBase.Item(vKeys(i)) bResult = bResult & "<
| Status | Property | Expected | Actual |
| "&sStatus&" | "&KeysTemp(x)&" | "&m_ContextTemp.Item(keysTemp(x))&" | "&oTemp.GetROProperty(keysTemp(x))&" |