public void GetReplicationCursors_Disposed_ThrowsObjectDisposedException() { var controller = new SubController(); controller.Dispose(); Assert.Throws <ObjectDisposedException>(() => controller.GetReplicationCursors("partition")); }
public void GetReplicationCursors_NoContext_ThrowsNullReferenceException() { var controller = new SubController(); Assert.Throws <NullReferenceException>(() => controller.GetReplicationCursors("partition")); }
public void GetReplicationCursors_EmptyPartition_ThrowsArgumentException() { var controller = new SubController(); AssertExtensions.Throws <ArgumentException>("partition", () => controller.GetReplicationCursors(string.Empty)); }
public void GetReplicationCursors_NullPartition_ThrowsArgumentNullException() { var controller = new SubController(); AssertExtensions.Throws <ArgumentNullException>("partition", () => controller.GetReplicationCursors(null)); }