CDP4Common.Tests.Types.OrderedItemListTestFixture.VerifyThatMoveThrowsException4 C# (CSharp) Method

VerifyThatMoveThrowsException4() private method

private VerifyThatMoveThrowsException4 ( ) : void
return void
        public void VerifyThatMoveThrowsException4()
        {
            var testlist = new OrderedItemList<Thing>(this.person, true);
            var email0 = new EmailAddress(Guid.NewGuid(), null, null);
            var email1 = new EmailAddress(Guid.NewGuid(), null, null);

            testlist.Add(email0);
            testlist.Add(email1);

            Assert.Throws<ArgumentOutOfRangeException>(() => testlist.Move(0, 3));
        }