>>Thanks a lot, this is very helpful. I'll try to write some tests tomorrow for our business classes and our forms, which are classes as well.
>
>You're welcome.
>
>Thanks for mentioning Martin's article in UT Magazine (
http://www.utmag.com/wconnect/wc.dll?9,7,10,826). It looks really good.
>
>Chris
Hi Chirs,
I've created two test classes for two of my classes from aLetters.vcx When I tried to run tests, I got lots of errors on the first test (perhaps because this class is supposed to be on the form and can not be instantiated on its own).
I also found, that it can not work with relative paths, may be because the current directory is changed somewhere. I have FoxUnit on c drive and my project is also on C with Libs, progs, etc. directories. My path is:
PROGS, FORMS, LIBS, MENUS, DATA, OTHER, REPORTS, INCLUDE, HELP, GRAPHICS, \MMORTALS\COMMON30\UTILS, \MMORTALS\COMMON30\INCLUDE, \MMORTALS\COMMON30\LIBS, \MMORTALS\COMMON30\PROGS, \MMORTALS\COMMON30\GRAPHICS, \MMVISCOLLECT\DEVUTILS;\MMVISCOLLECT\TESTS;D:\STONEFIELD\SDT;D:\STONEFIELD\SDT\SOURCE;C:\FOXUNIT
and newobject('myClass','myLib.vcx') produces an error with file not found...
If it's not broken, fix it until it is.
My Blog