438a7dfe4f4c7442017b79d3f3ba6fa842054155
[teamcity/dotNetPackagesSupport.git] / nuget-extensions / nuget-tests / src / NuGetRunnerTest.cs
1 ´╗┐using System;\r
2 using NUnit.Framework;\r
3 \r
4 namespace JetBrains.TeamCity.NuGet.Tests\r
5 {\r
6   [TestFixture]\r
7   public class NuGetRunnerTest\r
8   {\r
9     [Test]\r
10     public void TestExcuteNuGet()\r
11     {\r
12       var r = ProcessExecutor.ExecuteProcess(NuGetRunner.Path.Value, NuGet.NuGetPath, "help");\r
13       Console.Out.WriteLine(r);\r
14 \r
15       Assert.IsTrue(r.ExitCode == 0);\r
16     }\r
17 \r
18     [Test]\r
19     public void TestDumpExtensionsPath()\r
20     {\r
21       var r = ProcessExecutor.ExecuteProcess(NuGetRunner.Path.Value, NuGet.NuGetPath, "---TeamCity.DumpExtensionsPath");\r
22       Console.Out.WriteLine(r);\r
23 \r
24       Assert.IsTrue(r.ExitCode == 0);\r
25     }\r
26 \r
27     [Test]\r
28     public void TestCommand_TeamCityPing()\r
29     {\r
30       ProcessExecutor.ExecuteProcess(NuGetRunner.Path.Value, NuGet.NuGetPath, "TeamCity.Ping")\r
31         .Dump()\r
32         .AssertExitedSuccessfully()\r
33         .AssertNoErrorOutput()\r
34         .AssertOutputContains("TeamCity NuGet Extension is available.");\r
35     }\r
36   }\r
37 }\r