/** * Checks for bug introduced around r682282-r683880 that caused a second GUTS records * which in turn got the dimensions record out of alignment */ public void TestGutsRecord_bug45640() { InternalSheet sheet = InternalSheet.CreateSheet(); sheet.AddRow(new RowRecord(0)); sheet.AddRow(new RowRecord(1)); sheet.GroupRowRange(0, 1, true); sheet.ToString(); IList recs = sheet.Records; int count = 0; for (int i = 0; i < recs.Count; i++) { if (recs[i] is GutsRecord) { count++; } } if (count == 2) { throw new AssertionException("Identified bug 45640"); } Assert.AreEqual(1, count); }