Esempio n. 1
0
        public void SingleEntityFunctionCallNodeNotImplemented()
        {
            FakeVisitor visitor = new FakeVisitor();
            Action      visitSingleEntityFunctionCallNode = () => visitor.Visit(new SingleEntityFunctionCallNode("stuff", null, HardCodedTestModel.GetPersonTypeReference(), HardCodedTestModel.GetPeopleSet()));

            visitSingleEntityFunctionCallNode.ShouldThrow <NotImplementedException>();
        }
Esempio n. 2
0
        public void ExpandNotImplemented()
        {
            FakeVisitor visitor          = new FakeVisitor();
            Action      visitExpandToken = () => visitor.Visit(new ExpandToken(null));

            visitExpandToken.ShouldThrow <NotImplementedException>();
        }
Esempio n. 3
0
        public void LiteralNotImplemented()
        {
            FakeVisitor visitor           = new FakeVisitor();
            Action      visitLiteralToken = () => visitor.Visit(new LiteralToken(1));

            visitLiteralToken.ShouldThrow <NotImplementedException>();
        }
Esempio n. 4
0
        public void GroupByOperatorNotImplemented()
        {
            FakeVisitor visitor = new FakeVisitor();
            Action      visitUnaryOperatorToken = () => visitor.Visit(new GroupByToken(new List <EndPathToken>(), null));

            visitUnaryOperatorToken.ShouldThrow <NotImplementedException>();
        }
Esempio n. 5
0
        public void BinaryOperatorNotImplemented()
        {
            FakeVisitor visitor = new FakeVisitor();
            Action      visitBinaryOperatorToken = () => visitor.Visit(new BinaryOperatorToken(BinaryOperatorKind.Equal, new LiteralToken(1), new LiteralToken(1)));

            visitBinaryOperatorToken.ShouldThrow <NotImplementedException>();
        }
Esempio n. 6
0
        public void SelectNotImplemented()
        {
            FakeVisitor visitor          = new FakeVisitor();
            Action      visitSelectToken = () => visitor.Visit(new SelectToken(null));

            visitSelectToken.ShouldThrow <NotImplementedException>();
        }
Esempio n. 7
0
        public void AggregateOperatorNotImplemented()
        {
            FakeVisitor visitor = new FakeVisitor();
            Action      visitUnaryOperatorToken = () => visitor.Visit(new AggregateToken(new List <AggregateTokenBase>()));

            visitUnaryOperatorToken.ShouldThrow <NotImplementedException>();
        }
Esempio n. 8
0
        public void BinaryOperatorNotImplemented()
        {
            FakeVisitor visitor = new FakeVisitor();
            Action      visitBinaryOperatorNode = () => visitor.Visit(new BinaryOperatorNode(BinaryOperatorKind.Equal, new ConstantNode(1), new ConstantNode(2)));

            visitBinaryOperatorNode.ShouldThrow <NotImplementedException>();
        }
Esempio n. 9
0
        public void CollectionNavigationNotImplemented()
        {
            FakeVisitor visitor = new FakeVisitor();
            Action      visitCollectionNavigationNode = () => visitor.Visit(new CollectionNavigationNode(ModelBuildingHelpers.BuildCollectionNavigationProperty(), HardCodedTestModel.GetPeopleSet()));

            visitCollectionNavigationNode.ShouldThrow <NotImplementedException>();
        }
Esempio n. 10
0
        public void UnaryOperatorNodeNotImplemented()
        {
            FakeVisitor visitor = new FakeVisitor();
            Action      visitUnaryOperatorNode = () => visitor.Visit(new UnaryOperatorNode(UnaryOperatorKind.Not, new ConstantNode(1)));

            visitUnaryOperatorNode.ShouldThrow <NotImplementedException>();
        }
Esempio n. 11
0
        public void AllNotImplemented()
        {
            FakeVisitor visitor      = new FakeVisitor();
            Action      visitAllNode = () => visitor.Visit(new AllNode(null, null));

            visitAllNode.ShouldThrow <NotImplementedException>();
        }
Esempio n. 12
0
        public void SingleValuePropertyAccessNodeNotImplemented()
        {
            FakeVisitor visitor = new FakeVisitor();
            Action      visitSingleValuePropertyAccessNode = () => visitor.Visit(new SingleValuePropertyAccessNode(new ConstantNode(1), ModelBuildingHelpers.BuildValidPrimitiveProperty()));

            visitSingleValuePropertyAccessNode.ShouldThrow <NotImplementedException>();
        }
Esempio n. 13
0
        public void SingleValueOpenPropertyAccessNodeNotImplemented()
        {
            FakeVisitor visitor = new FakeVisitor();
            Action      visitSingleValueOpenPropertyAccessNode = () => visitor.Visit(new SingleValueOpenPropertyAccessNode(new ConstantNode(1), "stuff"));

            visitSingleValueOpenPropertyAccessNode.ShouldThrow <NotImplementedException>();
        }
Esempio n. 14
0
        public void SingleValueFunctionCallNodeNotImplemented()
        {
            FakeVisitor visitor = new FakeVisitor();
            Action      visitSingleValueFunctionCallNode = () => visitor.Visit(new SingleValueFunctionCallNode("stuff", null, EdmCoreModel.Instance.GetInt32(true)));

            visitSingleValueFunctionCallNode.ShouldThrow <NotImplementedException>();
        }
Esempio n. 15
0
        public void QueryOptionNotImplemented()
        {
            FakeVisitor visitor = new FakeVisitor();
            Action      visitQueryOptionToken = () => visitor.Visit(new CustomQueryOptionToken("stuff", "stuff"));

            visitQueryOptionToken.ShouldThrow <NotImplementedException>();
        }
Esempio n. 16
0
        public void CollectionPropertyAccessNodeNotImplemented()
        {
            FakeVisitor visitor = new FakeVisitor();
            Action      visitCollectionPropertyAccessNode = () => visitor.Visit(new CollectionPropertyAccessNode(new ConstantNode(1), HardCodedTestModel.GetPersonGeographyCollectionProp()));

            visitCollectionPropertyAccessNode.ShouldThrow <NotImplementedException>();
        }
Esempio n. 17
0
        public void RangeVariableNotImplemented()
        {
            FakeVisitor visitor = new FakeVisitor();
            Action      visitRangeVariableToken = () => visitor.Visit(new RangeVariableToken("stuff"));

            visitRangeVariableToken.ShouldThrow <NotImplementedException>();
        }
Esempio n. 18
0
        public void ConstantNodeNotImplemented()
        {
            FakeVisitor visitor           = new FakeVisitor();
            Action      visitConstantNode = () => visitor.Visit(new ConstantNode(null));

            visitConstantNode.ShouldThrow <NotImplementedException>();
        }
Esempio n. 19
0
        public void UnaryOperatorNotImplemented()
        {
            FakeVisitor visitor = new FakeVisitor();
            Action      visitUnaryOperatorToken = () => visitor.Visit(new UnaryOperatorToken(UnaryOperatorKind.Negate, new LiteralToken(1)));

            visitUnaryOperatorToken.ShouldThrow <NotImplementedException>();
        }
Esempio n. 20
0
        public void ConvertNodeNotImplemented()
        {
            FakeVisitor visitor          = new FakeVisitor();
            Action      visitConvertNode = () => visitor.Visit(new ConvertNode(new ConstantNode(1), EdmCoreModel.Instance.GetBinary(true)));

            visitConvertNode.ShouldThrow <NotImplementedException>();
        }
Esempio n. 21
0
        public void AggregateExpressionOperatorNotImplemented()
        {
            FakeVisitor visitor = new FakeVisitor();
            Action      visitUnaryOperatorToken = () => visitor.Visit(new AggregateExpressionToken(new EndPathToken("Identifier", null), AggregationMethodDefinition.Sum, "Alias"));

            visitUnaryOperatorToken.ShouldThrow <NotImplementedException>();
        }
Esempio n. 22
0
        public void EntityCollectionCastNodeNotImplemented()
        {
            FakeVisitor visitor = new FakeVisitor();
            Action      visitEntityCollectionCastNode = () => visitor.Visit(new EntityCollectionCastNode(new EntitySetNode(HardCodedTestModel.GetPeopleSet()), HardCodedTestModel.GetPersonType()));

            visitEntityCollectionCastNode.ShouldThrow <NotImplementedException>();
        }
Esempio n. 23
0
        public void AnyNotImplemented()
        {
            FakeVisitor visitor       = new FakeVisitor();
            Action      visitAnyToken = () => visitor.Visit(new AnyToken(null, null, null));

            visitAnyToken.ShouldThrow <NotImplementedException>();
        }
Esempio n. 24
0
        public void EntityRangeVariableReferenceNodeNotImplemented()
        {
            FakeVisitor visitor = new FakeVisitor();
            Action      visitEntityRangeVariableReferenceNode = () => visitor.Visit(new EntityRangeVariableReferenceNode("stuff", new EntityRangeVariable("stuff", HardCodedTestModel.GetPersonTypeReference(), HardCodedTestModel.GetPeopleSet())));

            visitEntityRangeVariableReferenceNode.ShouldThrow <NotImplementedException>();
        }
Esempio n. 25
0
        public void CastNotImplemented()
        {
            FakeVisitor visitor        = new FakeVisitor();
            Action      visitCastToken = () => visitor.Visit(new DottedIdentifierToken("stuff", null));

            visitCastToken.ShouldThrow <NotImplementedException>();
        }
Esempio n. 26
0
        public void OrderByNotImplemented()
        {
            FakeVisitor visitor           = new FakeVisitor();
            Action      visitOrderByToken = () => visitor.Visit(new OrderByToken(new LiteralToken(1), OrderByDirection.Ascending));

            visitOrderByToken.ShouldThrow <NotImplementedException>();
        }
Esempio n. 27
0
        public void FunctionCallNotImplemented()
        {
            FakeVisitor visitor = new FakeVisitor();
            Action      visitFunctionCallToken = () => visitor.Visit(new FunctionCallToken("stuff", null));

            visitFunctionCallToken.ShouldThrow <NotImplementedException>();
        }
Esempio n. 28
0
        public void PropertyAccessNotImplemented()
        {
            FakeVisitor visitor = new FakeVisitor();
            Action      visitPropertyAccessToken = () => visitor.Visit(new EndPathToken("stuff", null));

            visitPropertyAccessToken.ShouldThrow <NotImplementedException>();
        }
Esempio n. 29
0
        public void NonRootSegmentNotImplemented()
        {
            FakeVisitor visitor = new FakeVisitor();
            Action      visitNonRootSegmentToken = () => visitor.Visit(new InnerPathToken("stuff", null, null));

            visitNonRootSegmentToken.ShouldThrow <NotImplementedException>();
        }
Esempio n. 30
0
        public void SingleEntityCastNodeNotImplemented()
        {
            FakeVisitor visitor = new FakeVisitor();
            Action      visitSingleEntityCastNode = () => visitor.Visit(new SingleEntityCastNode(null, ModelBuildingHelpers.BuildValidEntityType()));

            visitSingleEntityCastNode.ShouldThrow <NotImplementedException>();
        }