public void _0011_Signal() { var signal = new SignalItemObject(); signal.Parse("SG_ COUNT_LINE_FAULT_ERRORS_MAX M : 55|16@0+ (1,0) [0|65535] \"ms\" PC"); Assert.AreEqual("COUNT_LINE_FAULT_ERRORS_MAX", signal.Name); Assert.AreEqual("M", signal.MultiplesxerIndicator); Assert.AreEqual(55, signal.StartBit); Assert.AreEqual(16, signal.SignalSize); Assert.AreEqual('0', signal.ByteOrder); Assert.AreEqual('+', signal.ValueType); Assert.AreEqual(1.0, signal.Factor); Assert.AreEqual(0.0, signal.Offset); Assert.AreEqual(0.0, signal.Minimum); Assert.AreEqual(65535.0, signal.Maximum); Assert.AreEqual("ms", signal.Unit); Assert.AreEqual("PC", signal.ReceiverNodeName); }
public void _0010_Signal() { var signal = new SignalItemObject(); signal.Parse("SG_ DATATION_APPUI_3 : 39|16@0+ (0.1,0) [0|6553.5] \"ms 1\" PC"); Assert.AreEqual("DATATION_APPUI_3", signal.Name); Assert.AreEqual("", signal.MultiplesxerIndicator); Assert.AreEqual(39, signal.StartBit); Assert.AreEqual(16, signal.SignalSize); Assert.AreEqual('0', signal.ByteOrder); Assert.AreEqual('+', signal.ValueType); Assert.AreEqual(0.1, signal.Factor); Assert.AreEqual(0.0, signal.Offset); Assert.AreEqual(0.0, signal.Minimum); Assert.AreEqual(6553.5, signal.Maximum); Assert.AreEqual("ms 1", signal.Unit); Assert.AreEqual("PC", signal.ReceiverNodeName); }