public void GetAbsoluteIndex_BarelyTooPositiveIndex() { var list = new[] { 0, 1, 2, 3, 4, 5 }; list.GetAbsoluteIndex(6).Should().Be(0); }
public void GetAbsoluteIndex_WayTooPositiveIndex() { var list = new[] { 0, 1, 2, 3, 4, 5 }; list.GetAbsoluteIndex(8).Should().Be(2); }
public void GetAbsoluteIndex_MidAbsoluteIndex() { var list = new[] { 0, 1, 2, 3, 4, 5 }; list.GetAbsoluteIndex(3).Should().Be(3); }
public void GetAbsoluteIndex_LastIndex() { var list = new[] { 0, 1, 2, 3, 4, 5 }; list.GetAbsoluteIndex(5).Should().Be(5); }
public void GetAbsoluteIndex_NotTooNegativeIndex() { var list = new[] { 0, 1, 2, 3, 4, 5 }; list.GetAbsoluteIndex(-3).Should().Be(3); }
public void GetAbsoluteIndex_BarelyNotTooNegativeIndex() { var list = new[] { 0, 1, 2, 3, 4, 5 }; list.GetAbsoluteIndex(-6).Should().Be(0); }
public void GetAbsoluteIndex_SlightlyTooNegativeIndex() { var list = new[] { 0, 1, 2, 3, 4, 5 }; list.GetAbsoluteIndex(-7).Should().Be(5); }