Esempio n. 1
0
        public string Path()
        {
            var    path = _resultPath.Path();
            string environmentVariable  = System.Environment.GetEnvironmentVariable("EMULATED_STORAGE_SOURCE");
            string environmentVariable2 = System.Environment.GetEnvironmentVariable("EMULATED_STORAGE_TARGET");

            if (!string.IsNullOrEmpty(environmentVariable) && !string.IsNullOrEmpty(environmentVariable2) && path.StartsWith(environmentVariable2, StringComparison.Ordinal))
            {
                return(path.Replace(environmentVariable2, environmentVariable));
            }
            return(path);
        }
Esempio n. 2
0
 protected XunitTestSuiteInstrumentation(IntPtr handle, JniHandleOwnership transfer, IResultPath resultPath)
     : this(handle, transfer, resultPath, new TrxResultChannel(resultPath.Path()))
 {
 }