Gets or sets a value indicating whether this control is running
in the context of Visual Studio's UserControl Test Container.
Namespace: CleanCode.SqlEditorControlsAssembly: CleanCode.SqlEditorControls (in CleanCode.SqlEditorControls.dll) Version: 1.2.3.0 (1.2.03)
public bool ContainerTest { get; set; }
public bool ContainerTest { get; set; }
Public Property ContainerTest As Boolean
Get
Set
Public Property ContainerTest As Boolean
Get
Set
public:
property bool ContainerTest {
bool get ();
void set (bool value);
}
public:
property bool ContainerTest {
bool get ();
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 populates the DataGridView
with some unbound data, plus populates the connection list
with two entries, pointing to the AdventureWorks and master DBs
of a local SQL Server Express instance.