public void RemoveCurrentThrowsMessageNotImplemented() { mockME.ExpectAndThrow("RemoveCurrent", new NotImplementedException(), null); SystemMessageEnumerator me = CreateEnumerator((IMessageEnumerator)mockME.MockInstance); me.RemoveCurrent(); }
public void RemoveCurrentThrowsConnectionException() { mockME.ExpectAndThrow("RemoveCurrent", new ConnectionException(QueueReference.DEFAULT), null); SystemMessageEnumerator me = CreateEnumerator((IMessageEnumerator)mockME.MockInstance); me.RemoveCurrent(); }