Пример #1
0
        public void SyncReplicaFromServer_NoContext_ThrowsNullReferenceException()
        {
            var controller = new SubController();

            Assert.Throws <NullReferenceException>(() => controller.SyncReplicaFromServer("partition", "sourceServer"));
        }
Пример #2
0
        public void SyncReplicaFromServer_EmptyPartition_ThrowsArgumentException()
        {
            var controller = new SubController();

            AssertExtensions.Throws <ArgumentException>("partition", () => controller.SyncReplicaFromServer(string.Empty, "sourceServer"));
        }
Пример #3
0
        public void SyncReplicaFromServer_NullSourceServer_ThrowsArgumentNullException()
        {
            var controller = new SubController();

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