public void AddPivotCache()
{
XSSFWorkbook wb = new XSSFWorkbook();
try
{
CT_Workbook ctWb = wb.GetCTWorkbook();
CT_PivotCache pivotCache = wb.AddPivotCache("0");
//Ensures that pivotCaches is Initiated
Assert.IsTrue(ctWb.IsSetPivotCaches());
Assert.AreSame(pivotCache, ctWb.pivotCaches.GetPivotCacheArray(0));
Assert.AreEqual("0", pivotCache.id);
}
finally
{
wb.Close();
}
}