public void ItemIdCollectionSetRange() { tlog.Debug(tag, $"ItemIdCollectionSetRange START"); using (ItemIdCollection itemIdCollection = new ItemIdCollection(5)) { 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!"); try { testingTarget.SetRange(1, itemIdCollection); } catch (Exception e) { tlog.Debug(tag, e.Message.ToString()); Assert.Fail("Caught Exception: Failed!"); } testingTarget.Dispose(); } tlog.Debug(tag, $"ItemIdCollectionSetRange END (OK)"); }