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));
        }