Consider I have a C# test project. Each test executes some code and that code could exist in other files that could be local to the project or could exist in another project in the same solution, or even in a project in another solution. How might I find out which files are "used" by my test?
It would be preferable that the solution requires no changes to the tests. It would also be preferable that the approach can be automated.
For example, say I have:
Test.cs
[Test]
public void Test() {
var a = new Foo();
a.bar();
}
Foo.cs
public class Foo {
public void bar() { ... }
}
I would like to know that test Test()
depends on Foo.cs
.