示例#1
0
            public void It_returns_index_of_item_when_item_is_found()
            {
                var collection = new SynchronizedObservableCollection <string>(new List <string> {
                    "1", "2", "3"
                });

                Assert.That(collection.IndexOf("2"), Is.EqualTo(1));
            }
示例#2
0
        public AaronCarPartCollection ReplaceCarPartCollection(uint hash, AaronCarPartCollection collection)
        {
            var index = _carPartCollections.IndexOf(GetCarPartCollectionByHash(hash));

            return(_carPartCollections[index] = collection);
        }