ConnectionStringManager ContainerTest Property CleanCode C# Libraries v1.2.03 API
Gets or sets a value indicating whether this control is running in the context of Visual Studio's UserControl Test Container.

Namespace: CleanCode.DatabaseControls
Assembly: CleanCode.DatabaseControls (in CleanCode.DatabaseControls.dll) Version: 1.2.3.0 (1.2.03)
Syntax

public bool ContainerTest { get; set; }

Field Value

true when run in the test container; otherwise, false. The default is false.
Remarks

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. For this control, setting ContainerTest to true:
  • Exposes the result TextBox (via the ExposeResultText property) if not currently visible and increases its height to accommodate diagnostic output.
  • Displays the last accepted connection string on the tooltip of the ControlTitle (by setting the ShowDiagnosticConnectionString property).
  • Displays a pop-up with all variations of a connection string when you press the Test button and hold the Shift key.
  • Reports the current connection string based on current field values when you change the database type via the database type ComboBox control.
  • Reports the current ODBC driver details when you change the ODBC type via the ODBC ComboBox control.
  • Enables switching the server field between a freeform TextBox and a non-editable ComboBox by clicking on the server field label.
See Also