Namespace: Consultingwerk.Assertion
Class 
ListAssert Copy to Clipboard
Parent classes:
Inherits: Progress.Lang.Object

Purpose: Validates if an entry is in the given list of values
Notes:



Top Method Summary
Options Name Purpose
+ EntryIsInList (character, character) Validates if an entry is in the given list of values
+ EntryIsInList (character, character, character) Validates if an entry is in the given list of values
+ EntryIsInList (character, longchar) Validates if an entry is in the given list of values
+ EntryIsInList (character, longchar, character) Validates if an entry is in the given list of values
+ EvenEntries (character) Validates if a list has an even number of entries
+ EvenEntries (character, character) Validates if a list has an even number of entries
+ NumEntries (character, character, integer) Validates if a list has the expected number of entries
+ NumEntries (character, integer) Validates if a list has the expected number of entries
+ NumEntries (longchar, character, integer) Validates if a list has the expected number of entries
+ NumEntries (longchar, integer) Validates if a list has the expected number of entries
+ UniqueEntries (character) Validates if a list has only unique entries
+ UniqueEntries (character, character) Validates if a list has only unique entries


Method Detail
Top

PUBLIC EntryIsInList (character, character)

Purpose: Validates if an entry is in the given list of values
Notes:

Parameters:
pcEntry CHARACTER
The entry to locate in the list
pcList CHARACTER
The list to locate the entry in
Top

PUBLIC EntryIsInList (character, character, character)

Purpose: Validates if an entry is in the given list of values
Notes:

Parameters:
pcEntry CHARACTER
The entry to locate in the list
pcList CHARACTER
The list to locate the entry in
pcDelimiter CHARACTER
The list delimiter to use
Top

PUBLIC EntryIsInList (character, longchar)

Purpose: Validates if an entry is in the given list of values
Notes:

Parameters:
pcEntry CHARACTER
The entry to locate in the list
pcList LONGCHAR
The list to locate the entry in
Top

PUBLIC EntryIsInList (character, longchar, character)

Purpose: Validates if an entry is in the given list of values
Notes:

Parameters:
pcEntry CHARACTER
The entry to locate in the list
pcList LONGCHAR
The list to locate the entry in
pcDelimiter CHARACTER
The list delimiter to use
Top

PUBLIC EvenEntries (character)

Purpose: Validates if a list has an even number of entries
Notes:
Throws: Consultingwerk.Assertion.AssertException

Parameters:
pcList CHARACTER
The list to validate
Top

PUBLIC EvenEntries (character, character)

Purpose: Validates if a list has an even number of entries
Notes:
Throws: Consultingwerk.Assertion.AssertException

Parameters:
pcList CHARACTER
The list to validate
pcDelimiter CHARACTER
The list delimiter
Top

PUBLIC NumEntries (character, character, integer)

Purpose: Validates if a list has the expected number of entries
Notes:
Throws: Consultingwerk.Assertion.AssertException

Parameters:
pcList CHARACTER
The list to validate
pcDelimiter CHARACTER
The list delimiter
piEntries INTEGER
The expected number of entries
Top

PUBLIC NumEntries (character, integer)

Purpose: Validates if a list has the expected number of entries
Notes: Uses the comma as the default list delimiter
Throws: Consultingwerk.Assertion.AssertException

Parameters:
pcList CHARACTER
The list to validate
piEntries INTEGER
The expected number of entries
Top

PUBLIC NumEntries (longchar, character, integer)

Purpose: Validates if a list has the expected number of entries
Notes:
Throws: Consultingwerk.Assertion.AssertException

Parameters:
pcList LONGCHAR
The list to validate
pcDelimiter CHARACTER
The list delimiter
piEntries INTEGER
The expected number of entries
Top

PUBLIC NumEntries (longchar, integer)

Purpose: Validates if a list has the expected number of entries
Notes: Uses the comma as the default list delimiter
Throws: Consultingwerk.Assertion.AssertException

Parameters:
pcList LONGCHAR
The list to validate
piEntries INTEGER
The expected number of entries
Top

PUBLIC UniqueEntries (character)

Purpose: Validates if a list has only unique entries
Notes: Based on Consultingwerk.Util.ListHelper:VerifyUniqueEntries
Throws: Consultingwerk.Assertion.AssertException

Parameters:
pcList CHARACTER
The list to validate
Top

PUBLIC UniqueEntries (character, character)

Purpose: Validates if a list has only unique entries
Notes: Based on Consultingwerk.Util.ListHelper:VerifyUniqueEntries
Throws: Consultingwerk.Assertion.AssertException

Parameters:
pcList CHARACTER
The list to validate
pcDelimiter CHARACTER
The list delimiter


©2006-2023 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       08.12.2024 12:56:14