Exemple #1
0
        public void ModuleCreatedWithSetName()
        {
            string testName = "This is a test name";
            Module testModule = new Module(testName);

            Assert.AreEqual(testModule.Name, testName);
        }
Exemple #2
0
        public void ModuleCreatedWithDefaultSettings()
        {
            Module testModule = new Module();

            bool test = testModule.Name == DefaultSettings.DefaultNewModule.Name && testModule.LowerLimit == DefaultSettings.DefaultNewModule.LowerLimit || testModule.UpperLimit == DefaultSettings.DefaultNewModule.UpperLimit;

            Assert.IsTrue(test);
        }
        public BedsideMonitor()
        {
            var defaultModule = new Module();

            for (int i = 0; i < DefaultSettings.NumberOfModulesInAMonitor; i++)
            {
                AddModule(new Module(DefaultSettings.DefaultModules[i]));

            }
        }
Exemple #4
0
        public void ModuleCreatedWithSetNameAndValues()
        {
            string testName = "This is another test name";
            float upperLimit = 20f;
            float lowerLimit = 2f;

            Module testModule = new Module(testName, lowerLimit, upperLimit);

            Assert.AreEqual(testModule.Name, testName);
            Assert.AreEqual(testModule.UpperLimit, upperLimit);
            Assert.AreEqual(testModule.LowerLimit, lowerLimit);
        }
        public void ModuleCreatedWithDefaultSettings()
        {
            Module testModule = new Module();

            Assert.AreEqual(testModule.Name, NewPatientMonitor.DefaultSettings.NEW_MODULE_NAME);
            Assert.AreEqual(testModule.LowerLimit, NewPatientMonitor.DefaultSettings.LOWER_DEFAULT_VALUE);
            Assert.AreEqual(testModule.UpperLimit, NewPatientMonitor.DefaultSettings.UPPER_DEFAULT_VALUE);

            // This is a test comment.

            // Hello Nick
        }