Exemplo n.º 1
0
            protected override FrameStateMachine CreateISesDBuffer()
            {
#if SBUSNET
                FrameStateMachine mes = new SBUSNet_message(this);
#else
                FrameStateMachine mes = new SBUSRS_message(this);
#endif
                return(mes);
            }
        public void CreationRS()
        {
#if !DEBUG
            Assert.Inconclusive("This test requires DEBUG context");
#endif
            SBUSRS_message _msg = new SBUSRS_message(null);
            Assert.IsNotNull(_msg, "Message is not created.");
            BlockAddress _tb = new BlockAddress();
            _msg.Test_PrepareRequest(_tb.station, _tb);
            Assert.AreEqual(_msg.userDataLength, 7, "Request length is not valid");
        }