Beispiel #1
0
        public void get_id()
        {
            const byte expected = 0xc3;
            var        protocol = new LfProtocol();
            var        response = protocol.GetId().Use(_boundary).Write().Read(1);

            Assert.AreEqual(expected, response[0]);
        }
Beispiel #2
0
        public void get_id_auditing()
        {
            const string expected = "request: '0xfd', response '0xfd'";
            var          protocol = new LfProtocol();
            var          response = protocol.GetId().Use(_boundary.Auditing(_logger)).Write();

            Assert.AreEqual(expected, _logger.ToString());
        }