Пример #1
0
        public void ItemIdCollectionGetRange()
        {
            tlog.Debug(tag, $"ItemIdCollectionGetRange START");

            using (ItemIdCollection itemIdCollection = new ItemIdCollection(5))
            {
                var testingTarget = new ItemIdCollection();
                Assert.IsNotNull(testingTarget, "Should be not null!");
                Assert.IsInstanceOf <ItemIdCollection>(testingTarget, "Should be an Instance of ItemIdCollection!");

                testingTarget.AddRange(itemIdCollection);

                try
                {
                    var result = testingTarget.GetRange(0, 0);
                    Assert.IsInstanceOf <ItemIdCollection>(result, "Should be an Instance of ItemIdCollection!");
                }
                catch (Exception e)
                {
                    tlog.Debug(tag, e.Message.ToString());
                    Assert.Fail("Caught Exception: Failed!");
                }

                testingTarget.Dispose();
            }

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