/// <summary> /// Checks to verify that no system error has occured on the external source /// /// SYSTem:ERRor? /// </summary> /// <param name="extSource">the EXTSOURCE object</param> /// <returns>System error code and message</returns> public void TheExtSrcShouldHaveNoErrors(IEXTSOURCE extSource) { extSource.GetExtSrcSystemErrorQuery(); Regex responseRegex = new Regex("^0,\"No error\"$"); Match m = responseRegex.Match(extSource.ExtSrcSystemError); Assert.IsTrue(m.Success, "An unexpected value:" + extSource.ExtSrcSystemError + " was returned from SYST:ERR?"); }
/// <summary> /// Gets the system error code and message from the external source /// /// SYSTem:ERRor? /// </summary> /// <param name="extSource">the EXTSOURCE object</param> /// <returns>System error code and message</returns> public void GetExtSrcSystemErrorQuery(IEXTSOURCE extSource) { extSource.GetExtSrcSystemErrorQuery(); }