示例#1
0
        public void IsGlobalCatalog_Disposed_ThrowsObjectDisposedException()
        {
            var controller = new SubController();

            controller.Dispose();

            Assert.Throws <ObjectDisposedException>(() => controller.IsGlobalCatalog());
        }
示例#2
0
        public void IsGlobalCatalog_NoContext_ThrowsNullReferenceException()
        {
            var controller = new SubController();

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