public void GetElement_3DNonzeroIndex_ReturnsExpectedElement() { int index = 10; double[] expected = sequence3D[index]; double[] result = HaltonSequence.GetElement(3, index); Assert.That(result, Is.EqualTo(expected).Within(5E-6)); }
public void GetElement_InvalidDimensions_Throws() { Assert.That(() => HaltonSequence.GetElement(0, 0), Throws.ArgumentException); }
public void GetElement_InvalidIndex_Throws() { Assert.That(() => HaltonSequence.GetElement(-1, 1), Throws.ArgumentException); }