public Tests(TestMode mode)
{
_mode = mode;
var codeBase = Assembly.GetExecutingAssembly().Location;
var uri = new UriBuilder(codeBase);
var path = Uri.UnescapeDataString(uri.Path);
path = System.IO.Path.GetDirectoryName(path);
Directory.SetCurrentDirectory(path);
}