Пример #1
0
        public void SELECT_One_Column()
        {
            var expected = "SELECT Age FROM Users";

            var query  = _family.Select("Age");
            var actual = query.ToString();

            AreEqual(expected, actual);
        }
        public void SELECT_One_Column()
        {
            var query  = _family.Select("Age");
            var actual = query.ToList().OrderBy(x => (int)x.Key).ToList();

            Assert.Equal(_users.Length, actual.Count);
            for (int i = 0; i < _users.Length; i++)
            {
                var objUser = _users[i];
                var dbUser  = actual[i];

                Assert.Equal(1, dbUser.Columns.Count);
                Assert.Equal(objUser.Age, (int)dbUser["Age"]);
            }
        }