示例#1
0
        public void AddValue_IsCorrect()
        {
            // Arrange
            double actual   = 0;
            double expected = 0;

            // Act
            string groupName  = "DemoGroup";
            string signalName = "DemoTemperature";

            _manager.AddSignalItem(groupName, signalName, 0.99);
            actual = _manager.GetSignalItemCount(groupName, signalName);

            // Assert
            Assert.Equal(expected, actual);

            // Act
            _manager.SetSignalItemEnabled(groupName, signalName, SignalState.Start);
            _manager.AddSignalItem(groupName, signalName, 0.99);
            expected = 1;
            actual   = _manager.GetSignalItemCount(groupName, signalName);

            string temp = _manager.ToString();

            // Assert
            Assert.Equal(expected, actual);
        }