implement nuget list function with service messages support
[teamcity/dotNetPackagesSupport.git] / nuget-extensions / nuget-tests / src / NuGetRunnerTest.cs
index 4e2301350bba9953f4356d2760b99982464e1fac..438a7dfe4f4c7442017b79d3f3ba6fa842054155 100644 (file)
@@ -1,5 +1,4 @@
 ´╗┐using System;\r
-using JetBrains.TeamCity.NuGetRunner;\r
 using NUnit.Framework;\r
 \r
 namespace JetBrains.TeamCity.NuGet.Tests\r
@@ -7,12 +6,10 @@ namespace JetBrains.TeamCity.NuGet.Tests
   [TestFixture]\r
   public class NuGetRunnerTest\r
   {\r
-    private readonly Lazy<string> myRunnerPath = new Lazy<string>(()=>typeof (Program).Assembly.GetAssemblyPath());\r
-\r
     [Test]\r
     public void TestExcuteNuGet()\r
     {\r
-      var r = ProcessExecutor.ExecuteProcess(myRunnerPath.Value, NuGet.NuGetPath, "help");\r
+      var r = ProcessExecutor.ExecuteProcess(NuGetRunner.Path.Value, NuGet.NuGetPath, "help");\r
       Console.Out.WriteLine(r);\r
 \r
       Assert.IsTrue(r.ExitCode == 0);\r
@@ -21,7 +18,7 @@ namespace JetBrains.TeamCity.NuGet.Tests
     [Test]\r
     public void TestDumpExtensionsPath()\r
     {\r
-      var r = ProcessExecutor.ExecuteProcess(myRunnerPath.Value, NuGet.NuGetPath, "---TeamCity.DumpExtensionsPath");\r
+      var r = ProcessExecutor.ExecuteProcess(NuGetRunner.Path.Value, NuGet.NuGetPath, "---TeamCity.DumpExtensionsPath");\r
       Console.Out.WriteLine(r);\r
 \r
       Assert.IsTrue(r.ExitCode == 0);\r
@@ -30,7 +27,7 @@ namespace JetBrains.TeamCity.NuGet.Tests
     [Test]\r
     public void TestCommand_TeamCityPing()\r
     {\r
-      ProcessExecutor.ExecuteProcess(myRunnerPath.Value, NuGet.NuGetPath, "TeamCity.Ping")\r
+      ProcessExecutor.ExecuteProcess(NuGetRunner.Path.Value, NuGet.NuGetPath, "TeamCity.Ping")\r
         .Dump()\r
         .AssertExitedSuccessfully()\r
         .AssertNoErrorOutput()\r