public void CanFindNumberTheory(int expectedIndex, int toFind, params int[] sortedArray) { var chopper = new Chopper { CurrentSearchItem = toFind, CurrentSortedArray = sortedArray }; Assert.Equal(expectedIndex, chopper.ExecuteSearch()); }
public void ThenTheResultShouldBeOnTheScreen(int expectedIndex) { var result = _chopper.ExecuteSearch(); Assert.AreEqual(expectedIndex, result); }