예제 #1
0
        /// <summary>
        /// This tests the pump's basic add function
        /// Expected result - 9
        /// </summary>
        public static void TestPump()
        {
            var pump = new PeristalticPump();

            pump.Add(4, 5);
            Console.WriteLine(pump.GetAddResult());
            while (true)
            {
            }
        }
예제 #2
0
        /// <summary>
        /// This tests the pump without wrapper and if it acquired the Status properly
        /// Expected result - Speed is 4 and Temp is 0
        /// </summary>
        public static void TestStatus()
        {
            var    pump       = new PeristalticPump();
            Status testStatus = pump.GetCurrentStatus();

            //var testStatus = new Status();
            testStatus.SetStatSpeed(4);
            Console.WriteLine("Speed is " + testStatus.GetStatSpeed() + " and Temp is " + testStatus.GetStatTemp());
            while (true)
            {
            }
        }