Esempio n. 1
0
        public void BinarySearch(
            [Values(10, 20, 30, 40, 0)] int value,
            [Values(0, 1, 2, ~3, ~0)] int expectedIndex)
        {
            int index = set.BinarySearch(value);

            Assert.AreEqual(expectedIndex, index);
        }