Exemplo n.º 1
0
 public void RandBetweenShouldReturnAnIntegerValueBetweenSuppliedValuesWhenLowIsNegative()
 {
     var func = new RandBetween();
     var args = FunctionsHelper.CreateArgs(-5, 0);
     var result = func.Execute(args, _parsingContext);
     CollectionAssert.Contains(new List<double> { 0d, -1d, -2d, -3d, -4d, -5d }, result.Result);
 }
Exemplo n.º 2
0
 public void RandBetweenShouldReturnAnIntegerValueBetweenSuppliedValues()
 {
     var func = new RandBetween();
     var args = FunctionsHelper.CreateArgs(1, 5);
     var result = func.Execute(args, _parsingContext);
     CollectionAssert.Contains(new List<double> { 1d, 2d, 3d, 4d, 5d }, result.Result);
 }