public void GivenTestCaseOne2_WhenGettingMinimumBribes_ThenItReturnsExpectedValue() { var queue = new int[] { 1, 2, 5, 3, 7, 8, 6, 4 }; var result = NewYearChaos.GetMinimumBribes(queue); Assert.Equal(7, result); }
public void GivenSampleTwo_WhenGettingMinimumBribes_ThenItReturnsExpectedValue() { var queue = new int[] { 2, 5, 1, 3, 4 }; var result = NewYearChaos.GetMinimumBribes(queue); Assert.Equal(-1, result); }
public void GivenBribeIsGreaterThanTwo_WhenGettingMinimumBribes_ThenItReturnsNegOne() { var queue = new int[] { 2, 5, 1 }; var result = NewYearChaos.GetMinimumBribes(queue); Assert.Equal(-1, result); }
public void GivenOneBribe_WhenGettingMinimumBribes_ThenItReturnsOne() { var queue = new int[] { 2, 1 }; var result = NewYearChaos.GetMinimumBribes(queue); Assert.Equal(1, result); }
public void GivenSingleQueue_WhenGettingMinimumBribes_ThenItReturnsZero() { var result = NewYearChaos.GetMinimumBribes(new int[1] { 1 }); Assert.Equal(0, result); }