public void FormData_EmptyValues() { datalist.Columns.Clear(); datalist.Columns.Add(new DatalistColumn("Test", null)); Dictionary <String, String> row = datalist.FormData(new TestModel { Id = "1", Value = "Test", Date = DateTime.Now.Date, Count = 4 }); Assert.Equal(new[] { "Id", "Label", "Test" }, row.Keys); Assert.Equal(new[] { "1", null, null }, row.Values); }