コード例 #1
0
        public void TestAddDataColumnWithOffsetData()
        {
            offsetPivotTable.AddColumnLabel(DataConsolidateFunction.SUM, 1);
            Assert.AreEqual(CellType.Numeric, offsetOuterCell.CellType);

            offsetPivotTable.AddColumnLabel(DataConsolidateFunction.SUM, 0);
        }
コード例 #2
0
        public void TestAddOneColumnLabelToPivotTableDoesNotCreateColField()
        {
            int columnIndex = 0;

            pivotTable.AddColumnLabel(DataConsolidateFunction.SUM, columnIndex);
            CT_PivotTableDefinition defintion = pivotTable.GetCTPivotTableDefinition();

            Assert.AreEqual(defintion.colFields, null);
        }