Пример #1
0
        public void CanFindNumberTheory(int expectedIndex, int toFind, params int[] sortedArray)
        {
            var chopper = new Chopper
            {
                CurrentSearchItem  = toFind,
                CurrentSortedArray = sortedArray
            };

            Assert.Equal(expectedIndex, chopper.ExecuteSearch());
        }
Пример #2
0
        public void ThenTheResultShouldBeOnTheScreen(int expectedIndex)
        {
            var result = _chopper.ExecuteSearch();

            Assert.AreEqual(expectedIndex, result);
        }