public void TestShiftFormulasAddCondFormat_bug46547() { // Create a sheet with data validity (similar to bugzilla attachment id=23131). InternalSheet sheet = InternalSheet.CreateSheet(); IList sheetRecs = sheet.Records; //Assert.AreEqual(23, sheetRecs.Count); Assert.AreEqual(24, sheetRecs.Count); //for SheetExtRecord FormulaShifter shifter = FormulaShifter.CreateForRowShift(0, "", 0, 0, 1); sheet.UpdateFormulasAfterCellShift(shifter, 0); if (sheetRecs.Count == 25 && sheetRecs[22] is ConditionalFormattingTable) { throw new AssertionException("Identified bug 46547a"); } //Assert.AreEqual(23, sheetRecs.Count); Assert.AreEqual(24, sheetRecs.Count); //for SheetExtRecord }