public void IndicesOf_AscendingValues() { var rows = ListUtility.IndicesOf(_list, _values).ToArray(); Assert.That(rows, Is.Not.Null); Assert.That(rows.Length, Is.EqualTo(3)); Assert.That(rows[0].Index, Is.EqualTo(1)); Assert.That(rows[1].Index, Is.EqualTo(3)); Assert.That(rows[2].Index, Is.EqualTo(0)); Assert.That(rows[0].BusinessObject, Is.EqualTo(_objB)); Assert.That(rows[1].BusinessObject, Is.EqualTo(_objD)); Assert.That(rows[2].BusinessObject, Is.EqualTo(_objA)); }