private ILookClient GetCommonClient() { var client = new LookClient() as ILookClient; client.Bind(Device, UserName, Password); return(client); }
public void ClientBindNotCalled() { // Initialize var client = new LookClient(); // Call try { StateRec rec; var errCode = client.GetState(out rec); } catch (Exception ex) { Trace.TraceInformation("\nReceived expected exception => {0}", ex); return; } Assert.Fail("Test expected to raise an exception. No exception raised."); }