public void LookupColumn_Header() { String actual = new LookupColumn("Test", "Test").Header; String expected = "Test"; Assert.Equal(expected, actual); }
public void LookupColumn_Key() { String actual = new LookupColumn("Test", "").Key; String expected = "Test"; Assert.Equal(expected, actual); }
public void LookupColumn_Key() { String actual = new LookupColumn("Test", null).Key; String expected = "Test"; Assert.Equal(expected, actual); }
public void LookupColumn_SetsCssClass() { String actual = new LookupColumn("", "", "Test").CssClass; String expected = "Test"; Assert.Equal(expected, actual); }
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); }
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); }