コード例 #1
0
        public void errMsgOr0()
        {
            string response = "1^my error^is^not^your error";

            Assert.AreEqual("my error", VistaUtils.errMsgOrZero(response));

            response = "0^this should be^ok";
            Assert.AreEqual("OK", VistaUtils.errMsgOrZero(response));
        }
コード例 #2
0
        public void errMsgOr0_1Field()
        {
            string response = "no error code";

            VistaUtils.errMsgOrZero(response);
        }