In Visual Studio, I have a unit test that calls a method on a class in another project - let's call it MyClass.A().
Inside A(), it accesses a setting in MyClass' project properties.
When I use MyClass.A() during normal runtime, it gets the correct value from the setting. However, when I do it from the unit test, it returns null. Do I need a post-build event in the unit test project to copy the settings over?
This is how the settings are being accessed in MyClass.A():
string connectionString = global::DataAccess.Properties.Settings.Default.ConnectionString;
RESOLUTION
So the issue had to do with the moldering pile of wet toilet paper I like to call my brain. There is a public property on MyClass that I needed to set with the connection string. The Set accessor assigns the value to the appropriate Settings property. Thanks for all the responses.