public void IsValidReturnsTrueForValidPoint() { var point = new GenomeSearchPoint( Vector <double> .Build.DenseOfArray(new[] { 1.2, 3.5, 0.3, 0.8 }), this._parent, this._genomeBuilder); Assert.True(point.IsValid(), $"{point} should be valid."); }
public void IsValidChecksBoundaries() { var point = new GenomeSearchPoint( Vector <double> .Build.DenseOfArray(new[] { 1.2, 3.5, -24.3, 0.8 }), this._parent, this._genomeBuilder); Assert.False(point.IsValid(), $"{point} should not be valid."); }