Caves Travel Diving Graphics Mizar Texts Cuisine Lemkov Contact Map RSS Polski
Trybiks' Dive Texts Testing YAC Software
  Back

List

Charsets

Charts

DBExpress

Delphi

HTML

Intraweb

PHP

Programming

Rhino Mocks

Software

Testing

VB.NET

VCL

WPF

Testing
  • Accessing private and protected members - PrivateObject and PrivateType
    Need access to private / protected members of an object when doing unit tests? Use PrivateObject and PrivateType.

  • Get the TreeViewItem for an Item in a WPF TreeView
    When unit testing a user control with a tree view, I wanted to simulate mouse clicks on tree view items. But then it turned out that it's not that straightforward to get the control that displays the item (and that I needed to raise the mouse event for)...

  • Double Clicks in WPF TreeView Controls
    It turns out that double click events in WPF TreeViews are reported for the clicked node as well as for all parent nodes!

  • Output in MSTest Tests (VS 2010)
    Can't find output from Console / Debug / Trace .WriteLine statements when running unit tests in VS 2010? Here's a short text showing where everything goes.

  • Checking Property Change Notifications
    Worried about type safety of property change notifications (INotifyPropertyChanged) in your VB.NET apps? Six lines of code will help in making sure that those are, actually, defined correctly.

  • Checking "Dangling" Event Handlers in Delphi Forms
    I like Visual Form Inheritance (VFI) in Delphi, but the tool support could be much better. One things that like to get out of sync. when working on form hierarchies is event handler mappings between events and the respective procedures. Here's a small procedure that will check any discrepancies in that area.

  • Rhino Mocks's AssertWasCalled in VB.NET
    Using a big new library in any project can be quite daunting. But, IMO, the best way to learn one is to just start using it. And then, after a while, the more advanced functions will become apparent. But where to start?

    In this text you'll find a gentle introduction to Rhino Mocks that shows the simplest scenario where the library can be used - creating object stubs to facilitate testing.

  • First steps with Rhino Mocks (in VB.NET)
    Using a big new library in any project can be quite daunting. But, IMO, the best way to learn one is to just start using it. And then, after a while, the more advanced functions will become apparent. But where to start?

    In this text you'll find a gentle introduction to Rhino Mocks that shows the simplest scenario where the library can be used - creating object stubs to facilitate testing.

  • VS Pending Tests
    Having problems running unit tests in Visual Studio 2008? Tests remain in "pending" mode forever instead of (finally) succeeding / failing? Well, this hotfix just might help you!

  • Automated GUI Testing
    Ever head problems with testing GUI applications using an external testing program? Or maybe you just want to test a single window/form without the need of running your whole program? Start unit testing you GUIs - it's as simple as standard unit tests.

  • Automated GUI Testing in VMs
    GUI testing, when being run on the development machine, blocks work because you can't use the keyboard or the mouse during the tests. Well, use a virtual machine for your tests while continuing work on the host.

  • Automated Testing of Window Forms
    Tired of continuously verifying tab orders and accelerators in your window forms? How many times have you shipped a program that duplicates shortcuts, doesn't have FocusControl assigned in labels, doesn't have default buttons in dialog windows, etc.? Well, this text describes an approach for automatic testing of window forms (and other controls, for that matter). An approach that, at least for me, saves hours of testing time each week.

  • Detecting Memory Leaks with DUnit
    It's much easier to fix coding faults when these are discovered in the unit testing phase than when they're discovered in further phases of the development cycle. A category of such defects - memory leaks - are usually hard to track down because of their irregular behavior. Then, tracking down the root cause of the problem is often difficult and time consuming.

    When programming in Delphi, DUnit is the obvious choice for unit testing, and thanks to its memory leak detector, helps in the problem mentioned above (and, for other languages, similar unit testing frameworks can be used). However, there are certain caveats to deal with here, and one of these is discussed in the article.
Top