private bool disposedValue = false; // To detect redundant calls protected override void Dispose(bool disposing) { if (!disposedValue) { if (disposing) { UnLinkGrid(); Rows.Clear(); foreach (var r in RowList) { r.Dispose(); } RowList.Clear(); MyDataBC = null; } disposedValue = true; } base.Dispose(disposing); }
public void TestClear() { _condList.Clear(); Assert.AreEqual(0, _condList.Count); }