Exemplo n.º 1
0
        public void ItemIdCollectionLastIndexOf()
        {
            tlog.Debug(tag, $"ItemIdCollectionLastIndexOf START");

            uint[] itemId = new uint[] { 1, 2, 3, 4, 3 };
            global::System.Collections.ICollection c = itemId;

            var testingTarget = new ItemIdCollection(c);

            Assert.IsNotNull(testingTarget, "Should be not null!");
            Assert.IsInstanceOf <ItemIdCollection>(testingTarget, "Should be an Instance of ItemIdCollection!");

            testingTarget.Capacity = 5;

            Assert.AreEqual(4, testingTarget.LastIndexOf(3), "Should be equal!");

            testingTarget.Dispose();
            tlog.Debug(tag, $"ItemIdCollectionLastIndexOf END (OK)");
        }