private void ValidateValueByCorrectlyType(Type t) { var generator = new GeneratorValues(); var value = generator.GetValue(t); Assert.IsInstanceOfType(value, t); Assert.IsNotNull(value); }
public void ShouldReturnEnumValue() { var t = typeof(Enum); var assigner = new GeneratorValues(); var value = assigner.GetValue(t); Assert.IsNull(value); }
private static void ChangeMatrixs(ref double[][] cs, double percent, double[] selected, Random random) { for (int k = 0; k < cs.Length; k++) { int size = cs[k].Length; for (int i = 0; i < size; i++) { double e = cs[k][i] * (percent / 100); cs[k][i] += GeneratorValues.GetDoubleValue("Uniform", (-e, e), random) * selected[i]; } } }