示例#1
0
        public void TestFunctionCallTwoParameters()
        {
            var actual = new FunctionCall()
            {
                FunctionName = "test",
                Parameters   = new List <SqlExpression>()
                {
                    new ColumnReference()
                    {
                        Identifiers = new List <string> {
                            "c1"
                        }
                    },
                    new ColumnReference()
                    {
                        Identifiers = new List <string> {
                            "c2"
                        }
                    }
                }
            }.Print();
            var expected = "test(c1, c2)";

            actual.Should().Be(expected);
        }
示例#2
0
        public void TestFunctionCallWildcard()
        {
            var actual = new FunctionCall()
            {
                FunctionName = "test", Wildcard = true
            }.Print();
            var expected = "test(*)";

            actual.Should().Be(expected);
        }