I write a small function which accept a string type variable as parameter.
I am wondering if there is any way I can test my function?
I don’t want to use Unit Test thing because it is overkill.
Thank you for your responses.
UPDATE
Thanks all for your replies.
My case is, this function will be trigger by an event handler. However, I don’t want to bind the handle with my function and I just want to check if that function works.
So the best way is to write a unit test?
You can use the
immediate windowand type the function call in there to test. Typically, one would use this thing while running an application, but it is also available at design time.