Testing Policy completion
What does Visual Studio use to determine if the test run has been completed successfully in order to allow check-in? The reason for the question: why doesn't running these test external to Visual Studio via MSBuild satisfy this policy? I'd like to set a check-in policy that not only requires tests to be run prior to check-in, but also requires the build and tests are using latest code checked-in by others since my check-out. I can do this with a MSBuild script, but running the tests this way does not satisfy the check-in policy.
If I cannot satisfy the test from an external MSBuild script to enable check-in, is there a way to require tests to be run with the latest source? Would a custom check-in policy be the best approach for this requirement?

