public void trackAndUntrackColumn() { Assume.That(tracker.TrackedColumns.Count == 0); tracker.TrackColumn(0); ISet <int> expected = new HashSet <int>(); expected.Add(0); Assert.AreEqual(expected, tracker.TrackedColumns); tracker.UntrackColumn(0); Assert.IsTrue(tracker.TrackedColumns.Count == 0); }
/** * Track a column in the sheet for auto-sizing. * Note this has undefined behavior if a column is tracked after one or more rows are written to the sheet. * If <code>column</code> is already tracked, this call does nothing. * * @param column the column to track for autosizing * @since 3.14beta1 * @see #trackColumnsForAutoSizing(Collection) * @see #trackAllColumnsForAutoSizing() */ public void TrackColumnForAutoSizing(int column) { _autoSizeColumnTracker.TrackColumn(column); }