Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Re: VB Lite Unit is now available on Sourceforge
Steve Jorgensen wrote:

> The unit testing framework I created for use on VB6 and VBA projects is
now
> available for download from its new home on Sourceforge at
> http://sourceforge.net/projects/vb-lite-unit.

D'oh!

Can I trouble you for a vanilla example, or for a copy of the source inside
the MDB file? I seem to have mis-laid my MS Access...

--
Phlip
http://industrialxp.org/community/b...tUserInterfaces



Report this thread to moderator Post Follow-up to this message
Old Post
Phlip
08-11-04 08:57 PM


Re: VB Lite Unit is now available on Sourceforge
On Wed, 11 Aug 2004 14:21:02 GMT, "Phlip" <phlip_cpp@yahoo.com> wrote:

>Steve Jorgensen wrote:
> 
>now 
>
>D'oh!
>
>Can I trouble you for a vanilla example, or for a copy of the source inside
>the MDB file? I seem to have mis-laid my MS Access...

The example code is also inside the VB Project code, so you can either open 
it
in VB6, or you can open the files in the Modules subdirectory of the source,
and paste the code into VBA in MS Word, Excel, or whatever office 2K or abov
e
app. you happen to have.

Look at the class (*.cls) modules named beginning with tcls...

Report this thread to moderator Post Follow-up to this message
Old Post
Steve Jorgensen
08-11-04 08:57 PM


Re: VB Lite Unit is now available on Sourceforge
Steve Jorgensen wrote:

> The example code is also inside the VB Project code, so you can either
open it
> in VB6, or you can open the files in the Modules subdirectory of the
source,
> and paste the code into VBA in MS Word, Excel, or whatever office 2K or
above
> app. you happen to have.
>
> Look at the class (*.cls) modules named beginning with tcls...

I have almost a decade of experience with Visual Basic, including VBA, and
it still kicks my ass.

I referenced your DLL, and cloned your test into my (VBA) project. In this
method...

Private Function ITestCase_TestCaseInstance() As ITestCase
Dim objResult As New tclsTestCaseTester
' Test for cut/paste error - programmer forgot to change type of
objResult.
Debug.Assert TypeName(objResult) = TypeName(Me)
Set ITestCase_TestCaseInstance = objResult
End Function

...the line 'Dim objResult' sez "User-defined type not defined".

Don'tcha love it?

--
Phlip
http://industrialxp.org/community/b...tUserInterfaces



Report this thread to moderator Post Follow-up to this message
Old Post
Phlip
08-12-04 01:57 AM


Re: VB Lite Unit is now available on Sourceforge
On Wed, 11 Aug 2004 21:13:55 GMT, "Phlip" <phlip_cpp@yahoo.com> wrote:

>Steve Jorgensen wrote:
> 
>open it 
>source, 
>above 
>
>I have almost a decade of experience with Visual Basic, including VBA, and
>it still kicks my ass.
>
>I referenced your DLL, and cloned your test into my (VBA) project. In this
>method...
>
>Private Function ITestCase_TestCaseInstance() As ITestCase
>    Dim objResult As New tclsTestCaseTester
>    ' Test for cut/paste error - programmer forgot to change type of
>objResult.
>    Debug.Assert TypeName(objResult) = TypeName(Me)
>    Set ITestCase_TestCaseInstance = objResult
>End Function
>
>...the line 'Dim objResult' sez "User-defined type not defined".
>
>Don'tcha love it?

Note that tclsTestCaseTester is supposed to be the name of the class itself
since the function is used to generate instances of the class itself so that
each test can be run in its own instance.

Until you change the name of the class to tclsTestCaseTester or replace
tclsTestCaseTester with the name of your class, it won't compile.  I'm
guessing that's the problem you are having.

By the way, thanks for helping me see what people will run into when trying 
to
use this code.  It's most helpful.

Report this thread to moderator Post Follow-up to this message
Old Post
Steve Jorgensen
08-12-04 08:58 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Extreme Programming archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 04:37 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.