예제 #1
0
        public void LookupColumn_Header()
        {
            String actual   = new LookupColumn("Test", "Test").Header;
            String expected = "Test";

            Assert.Equal(expected, actual);
        }
예제 #2
0
        public void LookupColumn_Header()
        {
            String actual = new LookupColumn("Test", "Test").Header;
            String expected = "Test";

            Assert.Equal(expected, actual);
        }
예제 #3
0
        public void LookupColumn_Key()
        {
            String actual   = new LookupColumn("Test", "").Key;
            String expected = "Test";

            Assert.Equal(expected, actual);
        }
예제 #4
0
        public void LookupColumn_Key()
        {
            String actual = new LookupColumn("Test", null).Key;
            String expected = "Test";

            Assert.Equal(expected, actual);
        }
예제 #5
0
        public void LookupColumn_SetsCssClass()
        {
            String actual = new LookupColumn("", "", "Test").CssClass;
            String expected = "Test";

            Assert.Equal(expected, actual);
        }
예제 #6
0
        public void LookupColumn_SetsName()
        {
            String actual = new LookupColumn("Test", "").Name;
            String expected = "Test";

            Assert.Equal(expected, actual);
        }
        public void LookupColumn_Defaults()
        {
            LookupColumn actual = new LookupColumn("Test", "Headers");

            Assert.Equal("Headers", actual.Header);
            Assert.Equal("Test", actual.Key);
            Assert.Empty(actual.CssClass);
            Assert.False(actual.Hidden);
        }
예제 #8
0
        public void Add_Column()
        {
            LookupColumn column = new LookupColumn("Test3", "3");
            allColumns.Add(column);

            columns.Add(column);

            IEnumerable<LookupColumn> expected = allColumns;
            IEnumerable<LookupColumn> actual = columns;

            Assert.Equal(expected, actual);
        }