Object Test Bench
Object Test Bench (OTB) is designed for simple object-level testing. Use OTB to create instances of your project's objects, invoke methods, and evaluate the results. This way, you shorten the task of writing, debugging, and revising coding. Visual C# and Visual Basic support testing methods in OTB. OTB includes a tool window and a collection of dialog boxes for interacting with and manipulating objects displayed in Class Designer or in Class View.
Note
Class Designer is available only in the Professional and Team System versions of Visual Studio.
Use OTB for the following tasks:
Teaching object-oriented programming concepts without going into language syntax.
Providing a lightweight testing tool designed for academic and hobbyist programmers to use on small and simple projects.
Shortening the write-debug-rewrite loop.
Testing simple classes and their methods.
Discovering the behavior of a library API quickly.
Object Test Bench is connected to other Visual Studio windows by a set of object operations, available when you right-click objects in Class View. These object operations include Create Instance and Invoke Static Method. When you instantiate an object or invoke a method, the Object Test Bench window displays the object instance. For more information, see How to: Create and Display an Instance of an Object.
Object instances appear in the Object Test Bench tool window as shapes. You can inspect an object and invoke its methods by right-clicking it and using the shortcut menu.
Object Test Bench works only on the StartUp project in the solution or in a referenced assembly. To set the StartUp project, right-click the project icon in Solution Explorer and then click Set As StartUp project. Only one instance of Object Test Bench exists for every Visual Studio instance.
Use Object Test Bench to invoke methods of classes in the .NET Framework 3.5.
In This Section
Create and Display Object Test Bench Objects
Troubleshooting Object Test Bench