|
||||||
| SUMMARY: CHILDREN | PARAMETER | INSTPROC | INSTFILTER | INSTFORWARD | DETAIL: | INSTPROC | |||||
::xotcl::Object
|
+--::xox::Node
|
+--::xounit::Test
|
+--::xounit::Assert
|
+--::xounit::TestCase
| Variables | |||
| Name | Default Value | Class | Comment |
currentTestMethod |
::xounit::TestCase | name of the currently running test method. |
|
nodeName |
::xox::Node | ||
result |
::xounit::TestCase | the result for the current run. |
|
| Methods | |
| Name | Comment |
notest {}
| |
| Methods from ::xotcl::Object |
#, ., ?, ?code, ?methods, ?object, abstract, copy, coverageFilter, defaultmethod, extractConfigureArg, filterappend, garbageCollect, get#, getClean#, hasclass, init, methodTag, mixinappend, move, profileFilter, self, setParameterDefaults, shell, tclcmd, traceFilter,
|
| Instproc Detail |
::xounit::test::TestAssertFindIn instproc notest {} {
set a [ ::xounit::Assert new ]
$a assertFindIn a a "Should find a"
$a assertFindIn a abcdefgh "Should find a"
$a assertFindIn a "
abcdefgh" "Should find a"
$a assertFindIn TestCasesAreCool "I dont know about you but I think TestCasesAreCool"
catch {
$a assertFindIn b a
} result
my assertEquals "\nDid not find b in:\na - 0" [ ::xoexception::Throwable::extractMessage $result ]
catch {
$a assertFindIn "" a
} result
my assertEquals "\nDid not find in:\na - 0" [ ::xoexception::Throwable::extractMessage $result ]
}