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

            test.PopulateSequentialChange();
            Assert.IsTrue(test.list.Count > 50);
        }
Example #2
0
        public void HashTest()
        {
            MotionSensorSettingsList test = new MotionSensorSettingsList();

            test.PopulateSequentialChange();
            Assert.IsTrue(test.list[0].GetHashCode() != test.list[1].GetHashCode());
        }
 public void CombinationTesting()
 {
     MotionSensorSettingsList testSettings = new MotionSensorSettingsList();
     testSettings.PopulateAllPossible();
     Assert.IsTrue(testSettings.seperateSettingLists.Count > 3);
     Assert.IsTrue(testSettings.seperateSettingLists[0].list.Count > 0);
 }
Example #4
0
        public void CombinationTesting()
        {
            MotionSensorSettingsList testSettings = new MotionSensorSettingsList();

            testSettings.PopulateAllPossible();
            Assert.IsTrue(testSettings.seperateSettingLists.Count > 3);
            Assert.IsTrue(testSettings.seperateSettingLists[0].list.Count > 0);
        }
        /// <summary>
        /// Tests all items in the captures list, against the specified motion sensor type
        /// </summary>
        /// <param name="motionSensorType"></param>
        public void TestAllCaptures(MotionSensorTypes motionSensorType)
        {
            PopulateAllCaptures();

            MotionSensorSettingsList motionSensorSettingsList = new MotionSensorSettingsList();
            motionSensorSettingsList.PopulateAllPossible();
            var settingsList = motionSensorSettingsList.list;

            foreach (MotionSensorSettingsTest setting in settingsList)
            {
                captures.list.ForEach(x => TestMotion(x, motionSensorType, setting));
            }
        }
        /// <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 #7
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));
            }
        }
Example #8
0
        /// <summary>
        /// Tests all items in the captures list, against the specified motion sensor type
        /// </summary>
        /// <param name="motionSensorType"></param>
        public void TestAllCaptures(MotionSensorTypes motionSensorType)
        {
            PopulateAllCaptures();

            MotionSensorSettingsList motionSensorSettingsList = new MotionSensorSettingsList();

            motionSensorSettingsList.PopulateAllPossible();
            var settingsList = motionSensorSettingsList.list;

            foreach (MotionSensorSettingsTest setting in settingsList)
            {
                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);
 }