public void BindSourceNull()
        {
            var ddl = new DropDownList();

            IOrderedQueryable<Tuple<int, string>> nullSource = null;

            ddl.Bind(nullSource, p => p, p => p);
        }
        public void BindValueField()
        {
            var ddl = new DropDownList();

            var risu = ddl.Bind(source.OrderBy(p => p.Item1), p => p.Item1, p => p.Item2);

            Assert.AreEqual("Item1", risu.DataValueField, false);
        }
        public void BindDataSource()
        {
            var ddl = new DropDownList();

            var risu = ddl.Bind(source, p => p.Item1, p => p.Item2);

            Assert.IsNotNull(ddl.DataSource as IOrderedQueryable<Tuple<int, string>>);
        }
 public void BindValueLambdaNull()
 {
     var ddl = new DropDownList();
     Expression< Func<Tuple<int, string>, int>> valueLam = null;
     ddl.Bind(source, valueLam, p => p);
 }