コード例 #1
0
        public void Cam4SetupSectorSets()
        {
            ConfigServiceMock.Object.Cam4SetupSector = "20/1";

            SettingsTabViewModel.LoadSettings();

            SettingsTabViewModel.Cam4SetupSector.Should().Be("20/1");
        }
コード例 #2
0
        public void Cam1SurfaceCenterSliderValueSets()
        {
            ConfigServiceMock.Object.Cam1SurfaceCenterSliderValue = 1555.55;

            SettingsTabViewModel.LoadSettings();

            SettingsTabViewModel.Cam1SurfaceCenterSliderValue.Should().Be(1555.55);
        }
コード例 #3
0
        public void ToCam4DistanceSets()
        {
            ConfigServiceMock.Object.ToCam4Distance = 35.5;

            SettingsTabViewModel.LoadSettings();

            SettingsTabViewModel.ToCam4Distance.Should().Be(35.5);
        }
コード例 #4
0
        public void Cam4YSetupValueSets()
        {
            ConfigServiceMock.Object.Cam4YSetupValue = 579;

            SettingsTabViewModel.LoadSettings();

            SettingsTabViewModel.Cam4YSetupValue.Should().Be(579);
        }
コード例 #5
0
        public void Cam4ThresholdSliderValueSets()
        {
            ConfigServiceMock.Object.Cam4ThresholdSliderValue = 1555.55;

            SettingsTabViewModel.LoadSettings();

            SettingsTabViewModel.Cam4ThresholdSliderValue.Should().Be(1555.55);
        }
コード例 #6
0
        public void MaxContourWidthValueSets()
        {
            ConfigServiceMock.Object.MaxContourWidthValue = 100;

            SettingsTabViewModel.LoadSettings();

            SettingsTabViewModel.MaxContourWidthValue.Should().Be(100);
        }
コード例 #7
0
        public void ThresholdSleepTimeValueSets()
        {
            ConfigServiceMock.Object.ThresholdSleepTimeValue = 5.5;

            SettingsTabViewModel.LoadSettings();

            SettingsTabViewModel.ThresholdSleepTimeValue.Should().Be(5.5);
        }
コード例 #8
0
        public void ExtractionSleepTimeValueSets()
        {
            ConfigServiceMock.Object.ExtractionSleepTimeValue = 8.5;

            SettingsTabViewModel.LoadSettings();

            SettingsTabViewModel.ExtractionSleepTimeValue.Should().Be(8.5);
        }
コード例 #9
0
        public void MovesDetectedSleepTimeValueSets()
        {
            ConfigServiceMock.Object.MovesDetectedSleepTimeValue = 0.25;

            SettingsTabViewModel.LoadSettings();

            SettingsTabViewModel.MovesDetectedSleepTimeValue.Should().Be(0.25);
        }
コード例 #10
0
        public void SmoothGaussValueSets()
        {
            ConfigServiceMock.Object.SmoothGaussValue = 5;

            SettingsTabViewModel.LoadSettings();

            SettingsTabViewModel.SmoothGaussValue.Should().Be(5);
        }
コード例 #11
0
        public void CamsResolutionHeightSets()
        {
            ConfigServiceMock.Object.CamsResolutionHeight = 1028;

            SettingsTabViewModel.LoadSettings();

            SettingsTabViewModel.CamsResolutionHeight.Should().Be(1028);
        }
コード例 #12
0
        public void CamsResolutionWidthSets()
        {
            ConfigServiceMock.Object.CamsResolutionWidth = 1920;

            SettingsTabViewModel.LoadSettings();

            SettingsTabViewModel.CamsResolutionWidth.Should().Be(1920);
        }
コード例 #13
0
        public void CamsFovAngleSets()
        {
            ConfigServiceMock.Object.CamsFovAngle = 75.5;

            SettingsTabViewModel.LoadSettings();

            SettingsTabViewModel.CamsFovAngle.Should().Be(75.5);
        }
コード例 #14
0
        public void Cam4IdSets()
        {
            ConfigServiceMock.Object.Cam4Id = "34rre5";

            SettingsTabViewModel.LoadSettings();

            SettingsTabViewModel.Cam4Id.Should().Be("34rre5");
        }
コード例 #15
0
        public void DetectionEnabledSets()
        {
            ConfigServiceMock.Object.DetectionEnabled = true;

            SettingsTabViewModel.LoadSettings();

            SettingsTabViewModel.DetectionEnabled.Should().BeTrue();
        }