示例#1
0
        public void GetSignal_Test(DeviceAction action, string head, string tail, string expectedResult)
        {
            // given
            var device = new AB440SA("10000", "00100");

            // when
            var result = device.GetSignal(head, tail, action);

            // then
            Assert.Equal(expectedResult, result);
        }
示例#2
0
        public void GetTail_AB440SA_Test()
        {
            // given
            var device = new AB440SA("00001", "10000");

            // when
            var result = _intertechnoGateway.GetTail(device);

            // then
            Assert.Equal("1,32,0", result);
        }
        public void GetTail_AB440SA_Test()
        {
            // given
            var device = new AB440SA("00001", "10000");

            // when
            var result = _brennenstuhlGateway.GetTail(device);

            // then
            Assert.Equal("1,14;", result);
        }
示例#4
0
        public void GetHead_AB440SA_Test()
        {
            // given
            var device = new AB440SA("00001", "10000");

            // when
            var result = _intertechnoGateway.GetHead(device);

            // then
            Assert.Equal("0,0,10,11200,350,26,0,", result);
        }
        public void GetHead_AB440SA_Test()
        {
            // given
            var device = new AB440SA("00001", "10000");

            // when
            var result = _brennenstuhlGateway.GetHead(device);

            // then
            Assert.Equal("TXP:0,0,10,5600,350,25,", result);
        }