예제 #1
0
        public void Test_Spo2_WithinRange_Warning()
        {
            Spo2Validator spo2Validator = new Spo2Validator();
            int           retVal        = spo2Validator.ValidateVital(70, 95, 73);

            Assert.AreEqual(retVal, 1);
        }
예제 #2
0
        public void Test_Spo2_WithinRange_Normal()
        {
            Spo2Validator spo2Validator = new Spo2Validator();
            int           retVal        = spo2Validator.ValidateVital(70, 95, 100);

            Assert.AreEqual(retVal, 0);
        }
예제 #3
0
        public void Test_Spo2_OutOfRange()
        {
            Spo2Validator spo2Validator = new Spo2Validator();
            int           retVal        = spo2Validator.ValidateVital(70, 95, 50);

            Assert.AreEqual(retVal, 2);
        }