public void EnableGlobalCatalog_Disposed_ThrowsObjectDisposedException() { var controller = new SubController(); controller.Dispose(); Assert.Throws <ObjectDisposedException>(() => controller.EnableGlobalCatalog()); }
public void EnableGlobalCatalog_NoContext_ThrowsActiveDirectoryObjectNotFoundException() { var controller = new SubController(); Assert.Throws <NullReferenceException>(() => controller.EnableGlobalCatalog()); }