public void Add_BeginningOfListItemNotAlreadyInList_IndicesCorrect() { var people = new List <Person>() { new Person() }; _source.Insert(0, people[0]); _target.Add(0, people); Assert.AreEqual(1, _target[people[0]].Count()); Assert.AreEqual(3, _target[_first].Count()); Assert.AreEqual(1, _target[_second].Count()); Assert.AreEqual(2, _target[_third].Count()); int index = 0; Assert.IsTrue(_target[people[0]].Contains(index++)); Assert.IsTrue(_target[_first].Contains(index++)); Assert.IsTrue(_target[_first].Contains(index++)); Assert.IsTrue(_target[_first].Contains(index++)); Assert.IsTrue(_target[_second].Contains(index++)); Assert.IsTrue(_target[_third].Contains(index++)); Assert.IsTrue(_target[_third].Contains(index++)); }