Comments (2)
Odd.. I haven't got VS2010 on my dev machine, so ive got to fire up a vm install it and test it all. Ill get back to you with my results.
from mstesthacks.
I had the same problem in VS2013. This was caused because the unit test project is missing the application configuration file app.config. What happens if this file is missing is as follows:
On startup the mstesthack code tries to add the dynamic datasources to the app.config file of the visual studio testrunner. This fails if you have installed Visual studio somewhere in C:\Program files\ because you need administrator rights to write in that folder. If you start visual studio as administrator, it will succeed.
The correct solution is to add an application configuration file app.config to your unit test project.
This should also be fixed in the mstesthack unit test project.
See also the closed issue: #5
from mstesthacks.
Related Issues (16)
- Datasources with the same name causes unexpected issues
- Main example doesn't work HOT 8
- Data source 'Blah.Blah' cannot be found in the test configuration settings HOT 6
- Long type names in deep directory structures cause AttachRuntimeDataSources to fail HOT 2
- DataSource don't work with Tuple and Nullable<DateTime> HOT 1
- How to specify method to test in ExceptionAssert.Throws HOT 1
- Is ExceptionAssert.Throws better than FluentAssertions.ShouldThrow ? HOT 1
- Data Source Example TrueOrFalse HOT 2
- No strong name
- Error CS0012: The type 'TestContext' is defined in an assembly that is not referenced. You must add a reference to assembly 'Microsoft.VisualStudio.QualityTools.UnitTestFramework, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
- System.UnauthorizedAccessException: Attempted to perform an unauthorized operation. HOT 2
- Question - Issue with Studio 2013 HOT 6
- Can't install nuget package on .net4.0 HOT 1
- MSTest data driven Test set DisplayName for Rows from DataSource
- MSTest data driven Test do not create a new test for Rows from DataSource HOT 1
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 mstesthacks.