Esempio n. 1
0
        public void GetElement_3DNonzeroIndex_ReturnsExpectedElement()
        {
            int index = 10;

            double[] result = HammersleySequence.GetElement(3, 16, index);
            Assert.That(result, Is.EqualTo(hammersleySequence3DBase16[index]).Within(6E-7));
        }
Esempio n. 2
0
 public void GetElement_InvalidDimensions_Throws()
 {
     Assert.That(() => HammersleySequence.GetElement(0, 16, 0), Throws.ArgumentException);
 }
Esempio n. 3
0
 public void GetElement_InvalidBase_Throws()
 {
     Assert.That(() => HammersleySequence.GetElement(1, 0, 0), Throws.ArgumentException);
 }
Esempio n. 4
0
 public void GetElement_InvalidIndex_Throws()
 {
     Assert.That(() => HammersleySequence.GetElement(1, 16, -1), Throws.ArgumentException);
 }
Esempio n. 5
0
 public void Constructor_InvalidDimensions_Throws()
 {
     Assert.That(() => HammersleySequence.GetElement(1, 16, -1), Throws.ArgumentException);
 }