public void TestActionsOnDisposedCursorFails() { ITimeSeriesEntryCursor cursor = CreateCursor(); Assert.IsNull(cursor.Current); cursor.Dispose(); foreach (OperationsHelper.CursorOperation cursorOperation in OperationsHelper.CursorOperations) { try { cursorOperation(cursor); Assert.Fail("The following operation should not work on a disposed cursor: " + cursorOperation); } catch (ObjectDisposedException) { // ok } } }