I am writing a unit test that accesses a file in an isolated data warehouse. The file name is stored in a private string const inside the class, because I do not use it anywhere in the entire application.
However, when I run my unit test, I get a "Field not found" error when calling the GetField ("fieldName") method of an instance of the PrivateObject class.
string historyFileName = (string)history.GetField("ISOLATED_HISTORY_FILE");
source
share