This converter finds the different date substrings in a string like a message. Actually the common date format looks like "dd-MMM-yyyy" and so we are dealing with strings like "This Date is valid from 17-JAN-2009 to 21-FEB-2010".
More...
|
| DateConverter () |
| ... More...
|
|
DateTime | GetNthDate (String inputString, int n) |
| Gets the n'th date value from a string. Refering to our example string "This Date is valid from 17-JAN-2009 to 21-FEB-2010" the first value is "17-JAN-2009" (converted to date format) and the second value is "21-FEB-2010" More...
|
|
String | GetDateString (DateTime dateTime) |
| We have to create own strings in an apropriate date format. More...
|
|
This converter finds the different date substrings in a string like a message. Actually the common date format looks like "dd-MMM-yyyy" and so we are dealing with strings like "This Date is valid from 17-JAN-2009 to 21-FEB-2010".
◆ DateConverter()
Ict.Testing.NUnitTools.DateConverter.DateConverter |
( |
| ) |
|
|
inline |
◆ GetDateString()
String Ict.Testing.NUnitTools.DateConverter.GetDateString |
( |
DateTime |
dateTime | ) |
|
|
inline |
We have to create own strings in an apropriate date format.
- Parameters
-
dateTime | Date which shall be converted. |
- Returns
◆ GetNthDate()
DateTime Ict.Testing.NUnitTools.DateConverter.GetNthDate |
( |
String |
inputString, |
|
|
int |
n |
|
) |
| |
|
inline |
Gets the n'th date value from a string. Refering to our example string "This Date is valid from 17-JAN-2009 to 21-FEB-2010" the first value is "17-JAN-2009" (converted to date format) and the second value is "21-FEB-2010"
- Parameters
-
inputString | The string which shall be searched for date entries |
n | The number of the hit which shall be searched |
- Returns
The documentation for this class was generated from the following file: