To illustrate here is some code:
-- in file: Core.lua
function addon_obj:to_be_tested(name)
if name == "TEST" then
return "TEST"
else
return nil
end
end
-- in file: test_suite.lua
wowUnit:assert(addon_obj:to_be_tested("TEST"),"Will succeed")
wowUnit:assert(addon_obj:to_be_tested("BLAH"),"This should now display (in frame.lua) this text +"..the_returned_variable)
I looked through the code, but wasn't all clear to me :)
To illustrate here is some code:
I looked through the code, but wasn't all clear to me :)