forked from reactiveui/ReactiveUI
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
31 lines (27 loc) · 830 Bytes
/
Program.cs
File metadata and controls
31 lines (27 loc) · 830 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PerfConsoleRunner
{
public class Program
{
public static int Main(string[] args)
{
var file = (new StackTrace(true).GetFrame(0)).GetFileName();
var solutionDir = new DirectoryInfo(Path.Combine(Path.GetDirectoryName(file), "..")).FullName;
#if DEBUG
var relDir = "Debug";
#else
var relDir = "Release";
#endif
var testAssembly = Path.Combine(solutionDir, @"ReactiveUI.Tests\bin\Debug\Net45\ReactiveUI.Tests_Net45.dll")
.Replace("Debug", relDir);
Xunit.ConsoleClient.Program.Main(new[] { testAssembly });
return 0;
}
}
}