Catel.Test.Collections.CollectionExtensionsFacts.TheMoveItemDownByIndexMethod.ThrowsArgumentOutOfRangeExceptionForIndexSmallerThanZero C# (CSharp) Метод

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

private ThrowsArgumentOutOfRangeExceptionForIndexSmallerThanZero ( ) : void
Результат void
            public void ThrowsArgumentOutOfRangeExceptionForIndexSmallerThanZero()
            {
                var list = new List<int> { 1, 2, 3 };
                ExceptionTester.CallMethodAndExpectException<ArgumentOutOfRangeException>(() => list.MoveItemDownByIndex(-1));
            }