コード例 #1
0
        public void TriggerSyncReplicaFromNeighbors_Disposed_ThrowsObjectDisposedException()
        {
            var controller = new SubController();

            controller.Dispose();

            Assert.Throws <ObjectDisposedException>(() => controller.TriggerSyncReplicaFromNeighbors("partition"));
        }
コード例 #2
0
        public void TriggerSyncReplicaFromNeighbors_NoContext_ThrowsNullReferenceException()
        {
            var controller = new SubController();

            Assert.Throws <NullReferenceException>(() => controller.TriggerSyncReplicaFromNeighbors("partition"));
        }
コード例 #3
0
        public void TriggerSyncReplicaFromNeighbors_EmptyPartition_ThrowsArgumentException()
        {
            var controller = new SubController();

            AssertExtensions.Throws <ArgumentException>("partition", () => controller.TriggerSyncReplicaFromNeighbors(string.Empty));
        }