
751
VB Lite Unit 
Another member of the xUnit family written to support Visual Basic and VBA 
(Visual Basic for Applications). “VB Lite Unit is a reliable, lightweight unit-testing 
tool for Visual Basic and VBA written by Steve Jorgensen. The driving principle 
behind VB Lite Unit was to create the simplest, most reliable unit-testing tool 
possible that would still do everything that usually matters for doing test-driven
development in VB 6 or VBA. Things that don’t work or don’t work reliably 
in VB and VBA are avoided, such as attempts at introspection to identify the 
test methods.” Another option for VB and VBA programmers is VbUnit. For 
VB.NET programmers, options include NUnit, CsUnit, and MbUnit. 
VbUnit
The member of the xUnit family written to support Visual Basic 6.0. It was the 
fi rst member of the xUnit family to support Suite Fixture Setup and introduced 
the concept of calling a Testcase Class “test fi xture.” 
One major quirk of VbUnit is that when an Assertion Method fails the test, 
it writes the messages into the failure log immediately rather than just raising 
an error that is then caught by the Test Runner. The practical implication of 
this behavior is that it becomes diffi cult to test Custom Assertions because the 
messages in the logs are not prevented by the normal Expected Exception Test
construct. The work-around is to run the Custom Assertion Tests inside an 
“Encapsulated Test Runner.” 
Another quirk is that VbUnit is one of the few members of the xUnit family that is 
not free (as in beer). It is available from http://www.vbunit.org. There used to 
be a free version available—who knows, it may reappear some day. Another 
option for VB and VBA programmers is VB Lite Unit. For VB.NET program-
mers, options include NUnit, CsUnit, and MbUnit. 
xUnit
The generic name for any Test Automation Framework for unit testing that is 
patterned on JUnit or SUnit. The xUnit test framework for most languages can 
be found at http://xprogramming.com or http://en.wikipedia.org/wiki/XUnit. 
Another place to look for both unit test and customer test tools is http://www.
opensourcetesting.org.
  xUnit Family Members
xUnit Family 
Members