Line | |
---|
1 | using System;
|
---|
2 | using System.Collections.Generic;
|
---|
3 | using System.Linq;
|
---|
4 | using System.Text;
|
---|
5 | using System.Reflection;
|
---|
6 | using System.Diagnostics;
|
---|
7 |
|
---|
8 | namespace NUnitProject
|
---|
9 | {
|
---|
10 | class Program
|
---|
11 | {
|
---|
12 | static void Main(string[] args)
|
---|
13 | {
|
---|
14 | try
|
---|
15 | {
|
---|
16 | String NUnitPath = @"C:\Users\Sam\Documents\Visual Studio 2010\Projects\bmx4\IHS BMX Framework\lib\NUnit\NUnit-2.5.10.11092\bin\net-2.0\nunit-console.exe";
|
---|
17 | AssemblyName asmName = System.Reflection.AssemblyName.GetAssemblyName(NUnitPath);
|
---|
18 | System.Environment.CurrentDirectory = System.IO.Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
|
---|
19 | AppDomain.CurrentDomain.ExecuteAssemblyByName(asmName, new[] { "/framework:4.0", @"C:\Users\Sam\Documents\Visual Studio 2010\Projects\bmx4\IHS BMX Framework\IndianHealthService.BMXNet.Test\bin\Debug\BMXTST40.dll" });
|
---|
20 | Console.ReadLine();
|
---|
21 | }
|
---|
22 | catch (Exception ex)
|
---|
23 | {
|
---|
24 | Trace.WriteLine(ex.Message);
|
---|
25 | Trace.WriteLine(ex.StackTrace);
|
---|
26 | }
|
---|
27 | }
|
---|
28 | }
|
---|
29 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.