コード例 #1
0
ファイル: get_id_test.cs プロジェクト: maxole/experiments
        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]);
        }
コード例 #2
0
ファイル: UnitTest1.cs プロジェクト: maxole/experiments
        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());
        }