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

            controller.Dispose();

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

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

            AssertExtensions.Throws <ArgumentException>("partition", () => controller.GetReplicationCursors(string.Empty));
        }
コード例 #4
0
        public void GetReplicationCursors_NullPartition_ThrowsArgumentNullException()
        {
            var controller = new SubController();

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