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