CDP4Common.Tests.Types.OrderedItemListTestFixture.VerifyThatMoveThrowsException2 C# (CSharp) Метод

VerifyThatMoveThrowsException2() приватный Метод

private VerifyThatMoveThrowsException2 ( ) : void
Результат void
        public void VerifyThatMoveThrowsException2()
        {
            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(2, 1));
        }