public void ToString_WriteMultipleCoilsRequest()
        {
            DiscreteCollection        col     = new DiscreteCollection(true, false, true, false, true, true, true, false, false);
            WriteMultipleCoilsRequest request = new WriteMultipleCoilsRequest(34, 45, col);

            Assert.AreEqual("Write 9 coils starting at address 45.", request.ToString());
        }
        public void ToString_WriteMultipleCoilsRequest()
        {
            DiscreteCollection col = new DiscreteCollection(true, false, true, false, true, true, true, false, false);
            WriteMultipleCoilsRequest request = new WriteMultipleCoilsRequest(34, 45, col);

            Assert.Equal("Write 9 coils starting at address 45.", request.ToString());
        }
Beispiel #3
0
        public void WriteMultipleCoilsRequestToString()
        {
            // Arrange
            var request = new WriteMultipleCoilsRequest(34, 45, new bool[] { true, false, true, false, true, true, true, false, false });

            // Act/Assert
            Assert.Equal("Write 9 coils starting at address 45 into slave 34", request.ToString());
        }