Esempio n. 1
0
        public void ItemIdCollectionRemoveAt()
        {
            tlog.Debug(tag, $"ItemIdCollectionRemoveAt START");

            uint[] itemId = new uint[] { 1, 2, 3, 4 };
            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;

            try
            {
                testingTarget.RemoveAt(3);
            }
            catch (Exception e)
            {
                tlog.Debug(tag, e.Message.ToString());
                Assert.Fail("Caught Exception: Failed!");
            }

            testingTarget.Dispose();

            tlog.Debug(tag, $"ItemIdCollectionRemoveAt END (OK)");
        }