コード例 #1
0
        public void GetElement_NegativeNumber_ReturnsNegativeExpectedElement()
        {
            int    index  = 11;
            double result = VanDerCorputSequence.GetElement(-index);

            Assert.That(result, Is.EqualTo(-sequenceBase2[index]));
        }
コード例 #2
0
        public void GetElement_PositiveNumberBase10_ReturnsExpectedElement()
        {
            int    index  = 11;
            double result = VanDerCorputSequence.GetElement(index, 10);

            Assert.That(result, Is.EqualTo(sequenceBase10[index]));
        }