예제 #1
0
        public void ValidateNonCatchableExceptionsThrowInFindOperationsByBindingParameterTypeHierarchyExceptionAndSurfaces()
        {
            var              model            = new FindOperationsByBindingParameterTypeHierarchyThrowingStackOverflowEdmModel();
            IEdmEntityType   entityType       = new EdmEntityType("n", "EntityType");
            ODataPathSegment foundPathSegment = null;
            Action           test             = () => SelectPathSegmentTokenBinder.TryBindAsOperation(new SystemToken("foo", null), model, entityType, out foundPathSegment);

            test.ShouldThrow <StackOverflowException>();
        }
 public void ValidateNonCatchableExceptionsThrowInFindOperationsByBindingParameterTypeHierarchyExceptionAndSurfaces()
 {
     var model = new FindOperationsByBindingParameterTypeHierarchyThrowingStackOverflowEdmModel();
     IEdmEntityType entityType = new EdmEntityType("n", "EntityType");
     ODataPathSegment foundPathSegment = null;
     Action test = () => SelectPathSegmentTokenBinder.TryBindAsOperation(new SystemToken("foo", null), model, entityType, out foundPathSegment);
     test.ShouldThrow<StackOverflowException>();
 }