Gets or sets a value indicating whether this control is running
in the context of Visual Studio's UserControl Test Container.
Namespace: CleanCode.DatabaseControlsAssembly: CleanCode.DatabaseControls (in CleanCode.DatabaseControls.dll) Version: 1.2.3.0 (1.2.03)
public bool ContainerTest { get; private set; }
public bool ContainerTest { get; private set; }
Public Property ContainerTest As Boolean
Get
Private Set
Public Property ContainerTest As Boolean
Get
Private Set
public:
property bool ContainerTest {
bool get ();
private: void set (bool value);
}
public:
property bool ContainerTest {
bool get ();
private: void set (bool value);
}
Field Value
true when run in the test container; otherwise,
false.
The default is
false.
By (my) convention, this property may be manually set within
the UserControl Test Container to signal the parent control
to expose additional functionality that allows the parent control
to be tested in isolation, without having to embed it in an application.
In this case, setting it to true exposes a ComboBox where
you may select a database type, which is normally set
programmatically before opening the control.
Also, it exposes an execute button which would normally
reside on the containing form.
Pressing this button shows the final, filled-in query
in a pop-up box and it is also loaded onto the clipboard
for convenience.