public void ReturnsReasonableWeights([Range(2, 50)] int sets) { var weights = DiscretePlanGenerator.WeightGenerator(sets); Assert.That(weights[0], Is.EqualTo(1.0).Within(0.004)); Assert.That(weights[sets - 1], Is.EqualTo(0.3).Within(0.004)); }
public void SetsGetEasier([Range(2, 50)] int sets) { var weights = DiscretePlanGenerator.WeightGenerator(sets); for (int i = 0; i < weights.Count; i++) { if (i != 0) { Assert.That(weights[i], Is.LessThan(weights[i - 1])); } } }