const classxfant::TestCase
sys::Obj xfant::TestCase : xfant::Xtest
Creates a test for a method.
The method must:
- have a name that starts with "test",
- not be abstract.
- call
Calls
methodon thetestinstance and returns result- checkMethodIsNotAbstract
- checkMethodName
- classname
virtual override Str classname()The classname of wich this test belongs.
- fromStr
static new fromStr(Str pattern, Bool checked := true)Matches
patternwithpod::type.slot. If matches, returns theSlot, if the string is invalid returns an error ifcheckedistrueornullotherwise.- isIgnored
Bool isIgnored()- make
new make(Method method)Constructor
- makeTest
Test makeTest()Create the
Testinstance specified bytype- method
const Method methodMethod to test
- name
virtual override Str name()The name of the test
- re
const static Regex re := "(\w+)[:]{2}(\w+)[.]{1}(\w+)".toRegexRegex to parse a
pod::type.slotpattern.- toStr
virtual override Str toStr()Name of the test.
- type
Type type()Type of the class where the method belongs