Esempio n. 1
0
        public void TestColumnsAdded()
        {
            var baseTable    = TestTableHelper.CreateReactiveTable();
            var groupedTable = new AggregatedTable(baseTable);

            groupedTable.GroupBy <string>(TestTableColumns.StringColumn);
            groupedTable.AddAggregate((IReactiveColumn <string>)groupedTable.GetColumnByName(TestTableColumns.StringColumn),
                                      "Test",
                                      () => new Count <string>());

            Assert.AreEqual(2, groupedTable.Columns.Count);
            Assert.AreEqual(TestTableColumns.StringColumn, groupedTable.Columns.First().ColumnId);
            Assert.AreEqual("Test", groupedTable.Columns.Skip(1).First().ColumnId);
        }