Comments (3)
I think:
SecurityManager.IsGranted(new StorePermission(StorePermissionFlags.CreateStore))
would do it. I'll experiment, assigning to myself.
Original comment by [email protected]
on 2 Sep 2010 at 7:32
from nhin-d.
OK, that doesn't do it. I'm not sure the required security permission. The
following code does make the error go away, but is sufficiently hinky that I'm
not comfortable putting it in.
try
{
AgentTester.EnsureStandardMachineStores();
}
catch (CryptographicException e)
{
if (e.Message.Trim() == "Access is denied.")
{
// Don't have admin privs
}
else
{
throw;
}
}
This post:
http://www.ademiller.com/blogs/tech/2009/09/conditional-acceptance-tests-with-xu
nit-net/
Describes a method to conditionally not run tests, but I'm not an xunit expert
and xunit itself is so poorly documented that I'm not sure how to put it into
practice...
Original comment by [email protected]
on 2 Sep 2010 at 7:59
from nhin-d.
There are a number of good blogs out on xUnit - one of the best guys is located
here
http://blog.benhall.me.uk/2008/01/introduction-to-xunit.html
http://blog.benhall.me.uk/2008/01/introduction-to-xunitnet-extensions.html
http://blog.benhall.me.uk/2008/01/creating-your-own-xunit-extension.html
I'll take a look at it. Also, there are samples that can be downloaded with the
xunit installer (I did not include those in the external\xunit which could be
beneficial in learning as well). If anything, I found that it is as least as
well documented as NUnit and other test frameworks, but maybe I'm biased or
indifferent ;)
Original comment by [email protected]
on 3 Sep 2010 at 4:23
from nhin-d.
Related Issues (20)
- Unknown error occurred while processing DATA. While using James 3Beta 4(direct-project-stock-3.0.1.tar.gz) with default config
- Error while dalivery maily when recived/send from/to external domain HOT 8
- Error while dalivery maily when recived from local/external domain Unable to access inbox
- Can't add trust bundle using Oracle as DB backend
- Java RI does not support p7c extensions from the AIA extension HOT 4
- Add support for DNS sub-zone delegation.
- How can we use domain.com instead of using sub-domain for sending and receiving emails by using direct project. HOT 1
- Java RI monitoring not matching final-recipeint field HOT 1
- LDAP resolver does not respect Priority during sort HOT 3
- config-service: Use build-helper-maven-plugin to set classpath to java files generated by jaxws-maven-plugin.
- Ignore IntelliJ configuration files and war directories
- Java RI failing DCDTv3 discovery testcase: D16 - Certificate discovery in LDAP based on SRV weight value HOT 2
- If a certificate issuer is the anchor certificate, resolveIntermediateIssuers will run anyway, causing unnecessary delays
- Memory Leak when using AddressManager configuration and EnableDomainSearch equal to true
- MDN Monitor can send DSN messages days after
- Add SRV management to DNS Responder in .NET RI
- XD fails with multiple recipients
- XDR Web Service is picking up multiple recipients from previous messages on the same thread HOT 3
- log out function of config-ui does not word HOT 1
- "Message Vanished" notification for all the receipts if the email is failed to deliver to some of the receipts. And there are many duplication notifications.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nhin-d.