Habanero.Testability.ValidValueGeneratorDouble.GenerateValidValueGreaterThan C# (CSharp) Method

GenerateValidValueGreaterThan() public method

public GenerateValidValueGreaterThan ( object minValue ) : object
minValue object
return object
        public object GenerateValidValueGreaterThan(object minValue)
        {
            return this.GenerateValidValue((double?) minValue, null);
        }

Usage Example

コード例 #1
0
 public void Test_GenerateValueGreaterThan_WhenDoubleAndNoRule_ShouldRetValidValue()
 {
     IPropDef def = new PropDefFake {
         PropertyType = typeof(double)
     };
     var generator = new ValidValueGeneratorDouble(def);
     Assert.AreSame(typeof(double), def.PropertyType);
     Assert.IsEmpty(def.PropRules.OfType<PropRuleDouble>().ToList<PropRuleDouble>());
     var value = (double) generator.GenerateValidValueGreaterThan(1.7976931348623157E+308);
     Assert.IsNotNull(value);
     Assert.GreaterOrEqual(value, double.MaxValue);
 }
All Usage Examples Of Habanero.Testability.ValidValueGeneratorDouble::GenerateValidValueGreaterThan