コード例 #1
0
            public void IsNumber_ThresholdIsNotRange_ThrowD026()
            {
                _valueType = DoDHelper.ValueTypeNumber;
                var threshold = new ThresholdDummy();

                threshold.SetIsRange(false);

                _thresholds = new List <Threshold>()
                {
                    threshold
                };

                Action action = ValidateThresholds;

                action.Should().ThrowExactly <DomainException>().And.Code.Should().Be(DomainError.D026.ToString());
            }
コード例 #2
0
            public void IsSelect_ThresholdIsRange_ThrowD028()
            {
                _valueType = DoDHelper.ValueTypeSelect;
                var threshold = new ThresholdDummy();

                threshold.SetIsRange(true);

                _thresholds = new List <Threshold>()
                {
                    threshold
                };

                Action action = ValidateThresholds;

                action.Should().ThrowExactly <DomainException>().And.Code.Should().Be(DomainError.D028.ToString());
            }
コード例 #3
0
            public void IsNumber_ThresholdIsRange_PassTest()
            {
                _valueType = DoDHelper.ValueTypeNumber;
                var threshold = new ThresholdDummy();

                threshold.SetIsRange(true);

                _thresholds = new List <Threshold>()
                {
                    threshold
                };

                Action action = ValidateThresholds;

                action.Should().NotThrow();
            }