public void errMsgOrOK() { string response = "0^my error^is^not^your error"; Assert.AreEqual("my error", VistaUtils.errMsgOrOK(response)); response = "1^this should be^ok"; Assert.AreEqual("OK", VistaUtils.errMsgOrOK(response)); }
public void errMsgOrOK_1Field() { string response = "no error code"; VistaUtils.errMsgOrOK(response); }