public void TriggerSyncReplicaFromNeighbors_Disposed_ThrowsObjectDisposedException() { var controller = new SubController(); controller.Dispose(); Assert.Throws <ObjectDisposedException>(() => controller.TriggerSyncReplicaFromNeighbors("partition")); }
public void TriggerSyncReplicaFromNeighbors_NoContext_ThrowsNullReferenceException() { var controller = new SubController(); Assert.Throws <NullReferenceException>(() => controller.TriggerSyncReplicaFromNeighbors("partition")); }
public void TriggerSyncReplicaFromNeighbors_EmptyPartition_ThrowsArgumentException() { var controller = new SubController(); AssertExtensions.Throws <ArgumentException>("partition", () => controller.TriggerSyncReplicaFromNeighbors(string.Empty)); }