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

            controller.Dispose();

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

            Assert.Throws <NullReferenceException>(() => controller.EnableGlobalCatalog());
        }