Example #1
0
        private void AssertCssClassFor <T>(String propertyName, String expected)
        {
            PropertyInfo property = typeof(T).GetProperty(propertyName);
            String       actual   = datalist.BaseGetColumnCssClass(property);

            Assert.AreEqual(expected, actual);
        }
Example #2
0
        public void GetColumnCssClass_ReturnsCssClassForPropertyType(String propertyName, String expected)
        {
            PropertyInfo property = typeof(AllTypesView).GetProperty(propertyName);

            String actual = datalist.BaseGetColumnCssClass(property);

            Assert.AreEqual(expected, actual);
        }