In Visual Studio 2008 I added the app.config
file to the test project as an existing item and selected copy as link in order to make sure it’s not duplicated. That way I only have one copy in my solution. With several test projects it comes in really handy!
More Related Contents:
- What is App.config in C#.NET? How to use it?
- Change default app.config at runtime
- Equivalent to ‘app.config’ for a library (DLL)
- Relocating app.config file to a custom path
- Xml-SelectNodes with default-namespace via XmlNamespaceManager not working as expected
- C# “internal” access modifier when doing unit testing
- Use XML includes or config references in app.config to include other config files’ settings
- Using the WPF Dispatcher in unit tests
- Is it possible to mock out a .NET HttpWebResponse?
- Visual Studio 2013 doesn’t discover unit tests
- Using Moq to determine if a method is called
- C# – Asserting two objects are equal in unit tests
- Execute unit tests serially (rather than in parallel)
- How can I write a unit test to determine whether an object can be garbage collected?
- Looking for an example of a custom SynchronizationContext (Required for unit testing)
- How to add cookies to WebRequest?
- Update app.config system.net setting at runtime
- Moq – Non-overridable members may not be used in setup / verification expressions
- How do I mock User.Identity.GetUserId()?
- How can I get “Copy to Output Directory” to work with Unit Tests?
- Unit test for thread safe-ness?
- Consume a SOAP web service without relying on the app.config
- How to unit test if my object is really serializable?
- How to enable configSource attribute for Custom Configuration Section in .NET?
- Unit testing HTTP requests in c#
- Read from App.config in a Class Library project
- AutoFixture fails to CreateAnonymous MVC Controller
- How to find path of active app.config file?
- How to modify my App.exe.config keys at runtime?
- How to log all thrown exceptions?