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()); }
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()); }
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(); }