Oh no... It is my mistake, instead of IDE.
I wrote my tests many time ago and now thought that this file was created and used by IDE.
But I found in my code that it is
my file and
my mistake:
[OneTimeSetUp]
public void RunBeforeAnyTests() {
Stream traceFile = File.Create("trace_out.txt");
listener
= new TextWriterTraceListener
(traceFile
); Trace.Listeners.Add(listener);
}
Earlier I launched the tests through the NUnit console application (instead of IDE) therefore problems weren't (the working directory was another). Now I changed settings of the project to launch tests in IDE and this error was appeared.
So I am to point the full path for the trace log file:
[OneTimeSetUp]
public void RunBeforeAnyTests() {
string dir = Path.GetDirectoryName(Assembly
.GetExecutingAssembly().Location);
string trace_file_name = Path.Combine(dir,
"trace_out.txt");
Stream traceFile = File.Create(trace_file_name);
listener
= new TextWriterTraceListener
(traceFile
); Trace.Listeners.Add(listener);
}
I apologize for this stupid topic. Remove it, please.