Exemple #1
0
        public void GetReplicationNeighbors_Disposed_ThrowsObjectDisposedException()
        {
            var controller = new SubController();

            controller.Dispose();

            Assert.Throws <ObjectDisposedException>(() => controller.GetReplicationNeighbors("partition"));
        }
Exemple #2
0
        public void GetReplicationNeighbors_NoContext_ThrowsNullReferenceException()
        {
            var controller = new SubController();

            Assert.Throws <NullReferenceException>(() => controller.GetReplicationNeighbors("partition"));
        }
Exemple #3
0
        public void GetReplicationNeighbors_EmptyPartition_ThrowsArgumentException()
        {
            var controller = new SubController();

            AssertExtensions.Throws <ArgumentException>("partition", () => controller.GetReplicationNeighbors(string.Empty));
        }
Exemple #4
0
        public void GetReplicationNeighbors_NullPartition_ThrowsArgumentNullException()
        {
            var controller = new SubController();

            AssertExtensions.Throws <ArgumentNullException>("partition", () => controller.GetReplicationNeighbors(null));
        }