Example #1
0
        public void ItemsTest()
        {
            WhereClauseItems target = new WhereClauseItems(); // TODO: Initialize to an appropriate value
            IEnumerable <WhereClauseItem> expected = null;    // TODO: Initialize to an appropriate value
            IEnumerable <WhereClauseItem> actual;

            target.Items = expected;
            actual       = target.Items;
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }
Example #2
0
        public void ToStringTest()
        {
            WhereClauseItems target = new WhereClauseItems(); // TODO: Initialize to an appropriate value

            target.View  = "Accounts";
            target.Items = new List <WhereClauseItem>
            {
                new WhereClauseItem {
                    DbField = "Id", GlobalOperator = "and", Value = "20", SqlOperator = ">"
                },
                new WhereClauseItem {
                    DbField = "Name", GlobalOperator = "and", Value = "20", SqlOperator = "="
                },
                new WhereClauseItem {
                    DbField = "Description", GlobalOperator = "or", Value = "20", SqlOperator = "<>"
                }
            };
            target.ShowItems = new List <ReportItem> {
                new ReportItem {
                    DbField = "Id", IsVisible = true, Name = "Id", Size = 20
                },
                new ReportItem {
                    DbField = "Name", IsVisible = true, Name = "Name", Size = 20
                },
                new ReportItem {
                    DbField = "First", IsVisible = true, Name = "First", Size = 20
                },
                new ReportItem {
                    DbField = "Family", IsVisible = true, Name = "Family", Size = 20
                }
            };
            string expected = "Select  Id , Name , First , Family  from  Accounts  where   Id>20 and Name=20 or Description<>20"; // TODO: Initialize to an appropriate value
            string actual;

            actual = target.ToString();
            Assert.AreEqual(expected, actual);
        }
Example #3
0
        public void WhereClauseItemsConstructorTest()
        {
            WhereClauseItems target = new WhereClauseItems();

            Assert.Inconclusive("TODO: Implement code to verify target");
        }