public static void Cleanup() { if (_rsTargetConnector.IsConnected) { _rsTargetConnector.Disconnect(); } }
public void RsTargetConnectorDisconnectValidTest() { //create a new instance of the sample connector RS_TargetConnector rsTargetConnector = new RS_TargetConnector(); //call the connect method from the connector and pass in the connection properties dictionary rsTargetConnector.Connect(_connectionProperties); //do a check that the IsConnected flag is true Assert.IsTrue(rsTargetConnector.IsConnected); //call the disconnect method from the connector rsTargetConnector.Disconnect(); //do a check the connector IsConnected flag is false Assert.IsFalse(rsTargetConnector.IsConnected); }