public void GetReplicationMetadata_Disposed_ThrowsObjectDisposedException()
        {
            var controller = new SubController();

            controller.Dispose();

            Assert.Throws <ObjectDisposedException>(() => controller.GetReplicationMetadata("objectPath"));
        }
Пример #2
0
        public void GetReplicationMetadata_NoContext_ThrowsNullReferenceException()
        {
            var controller = new SubController();

            Assert.Throws <NullReferenceException>(() => controller.GetReplicationMetadata("objectPath"));
        }
Пример #3
0
        public void GetReplicationMetadata_EmptyObjectPath_ThrowsArgumentException()
        {
            var controller = new SubController();

            AssertExtensions.Throws <ArgumentException>("objectPath", () => controller.GetReplicationMetadata(string.Empty));
        }
Пример #4
0
        public void GetReplicationMetadata_NullObjectPath_ThrowsArgumentNullException()
        {
            var controller = new SubController();

            AssertExtensions.Throws <ArgumentNullException>("objectPath", () => controller.GetReplicationMetadata(null));
        }