Example #1
0
        public void HashTest()
        {
            MotionSensorSettingsList test = new MotionSensorSettingsList();

            test.PopulateSequentialChange();
            Assert.IsTrue(test.list[0].GetHashCode() != test.list[1].GetHashCode());
        }
Example #2
0
        public void SequentialSettingLists()
        {
            MotionSensorSettingsList test = new MotionSensorSettingsList();

            test.PopulateSequentialChange();
            Assert.IsTrue(test.list.Count > 50);
        }
        /// <summary>
        /// Tests all captures in the database. Each setting is taken through its predefined range, with all captures being tested 
        /// throughout those ranges. All other settings remain at their default value
        /// </summary>
        public void TestAllCaptures_SequentialSettingChanges(MotionSensorTypes motionSensorType)
        {
            captures = new CaptureListTesting();
            captures.PopulateAllCaptures(true);

            MotionSensorSettingsList motionSensorSettingsList = new MotionSensorSettingsList();
            motionSensorSettingsList.PopulateSequentialChange();

            foreach (MotionSensorSettingsTest setting in motionSensorSettingsList.list)
            {
                captures.list.ForEach(x => TestMotion(x, motionSensorType, setting));
            }

        }
Example #4
0
        /// <summary>
        /// Tests all captures in the database. Each setting is taken through its predefined range, with all captures being tested
        /// throughout those ranges. All other settings remain at their default value
        /// </summary>
        public void TestAllCaptures_SequentialSettingChanges(MotionSensorTypes motionSensorType)
        {
            captures = new CaptureListTesting();
            captures.PopulateAllCaptures(true);

            MotionSensorSettingsList motionSensorSettingsList = new MotionSensorSettingsList();

            motionSensorSettingsList.PopulateSequentialChange();

            foreach (MotionSensorSettingsTest setting in motionSensorSettingsList.list)
            {
                captures.list.ForEach(x => TestMotion(x, motionSensorType, setting));
            }
        }
 public void HashTest()
 {
     MotionSensorSettingsList test = new MotionSensorSettingsList();
     test.PopulateSequentialChange();
     Assert.IsTrue(test.list[0].GetHashCode() != test.list[1].GetHashCode());
 }
 public void SequentialSettingLists()
 {
     MotionSensorSettingsList test = new MotionSensorSettingsList();
     test.PopulateSequentialChange();
     Assert.IsTrue(test.list.Count > 50);
 }