示例#1
0
        public void WhereCondition_AB()
        {
            WhereCondition wc = new WhereCondition()
            {
                Left  = "A",
                Right = "B"
            };
            string correctValue = "[A] = 'B'";
            string testValue    = wc.Build();

            MyAssert.Equals(correctValue, testValue);
        }
示例#2
0
        public void WhereCondition_AisnotNULL()
        {
            WhereCondition wc = new WhereCondition()
            {
                Left     = "A",
                Operator = "IS NOT",
                Right    = "NULL"
            };
            string correctValue = "[A] IS NOT NULL";
            string testValue    = wc.Build();

            MyAssert.Equals(correctValue, testValue);
        }