public void TimerVar_TestImageType()
        {
            //Arrange
            VariableTimer variableTimer = new VariableTimer();

            //Act
            eImageType eImageType = variableTimer.Image;

            //Assert
            Assert.AreEqual(eImageType.Timer, eImageType, "Image Type");
        }
        public void TimerVar_TestVariableUIType()
        {
            //Arrange
            VariableTimer variableTimer = new VariableTimer();

            //Act
            string varType = variableTimer.VariableUIType;

            //Assert
            Assert.IsTrue(varType.Contains("Timer"), "Timer Variable UI Type");
        }
        public void TimerVar_TestVariableType()
        {
            //Arrange
            VariableTimer variableTimer = new VariableTimer();

            //Act
            string varType = variableTimer.VariableType;

            //Assert
            Assert.AreEqual("Timer", varType, "Timer Variable Type");
        }
        public void TimerVar_TestTimerInMin()
        {
            //Arrange
            VariableTimer variableTimer = new VariableTimer();

            variableTimer.TimerUnit = VariableTimer.eTimerUnit.Minutes;

            //Act
            variableTimer.StartTimer();
            Thread.Sleep(1); //wait for 1 ms

            //Assert
            string restVal = variableTimer.Value;

            Assert.IsNotNull(restVal);
        }
        public void TimerVar_TestTimerInSec()
        {
            //Arrange
            VariableTimer variableTimer = new VariableTimer();

            variableTimer.TimerUnit = VariableTimer.eTimerUnit.Seconds;

            //Act
            variableTimer.StartTimer();
            Thread.Sleep(2000); //wait for 2 seconds

            //Assert
            string restVal = variableTimer.Value;

            Assert.IsNotNull(restVal);
        }
        public VariableTimerPage(VariableTimer variableTimer)
        {
            InitializeComponent();

            xTimerUnitCombo.Init(variableTimer, nameof(variableTimer.TimerUnit), typeof(VariableTimer.eTimerUnit));
        }