Beispiel #1
0
        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));
        }
Beispiel #2
0
 public void GetElement_InvalidDimensions_Throws()
 {
     Assert.That(() => HaltonSequence.GetElement(0, 0), Throws.ArgumentException);
 }
Beispiel #3
0
 public void GetElement_InvalidIndex_Throws()
 {
     Assert.That(() => HaltonSequence.GetElement(-1, 1), Throws.ArgumentException);
 }