support version spec filter
[teamcity/dotNetPackagesSupport.git] / nuget-extensions / nuget-tests / src / NuGetRunner_ListCommandTest.cs
index 6e70e6ed5ba941c498c9feb3f91e010062539a00..96684b0c8e52b29051547d2c57c25158e078a64e 100644 (file)
@@ -15,5 +15,17 @@ namespace JetBrains.TeamCity.NuGet.Tests
         .AssertNoErrorOutput()\r
         .AssertOutputContains("##teamcity[nuget-package Id='NUnit' Version='2.5.10.11092']");\r
     }\r
+\r
+    [Test]\r
+    public void TestCommand_TeamListPublicVersion()\r
+    {\r
+      var r = ProcessExecutor.ExecuteProcess(NuGetRunner.Path.Value, NuGet.NuGetPath, "TeamCity.List", "-Id", "NUnit", "-Version", "(1.1.1, 2.5.8)", "-Source", NuGetConstants.DefaultFeedUrl)\r
+        .Dump()\r
+        .AssertExitedSuccessfully()\r
+        .AssertNoErrorOutput()\r
+        .AssertOutputContains("##teamcity[nuget-package Id='NUnit' Version='2.5.7.10213']");\r
+\r
+      Assert.IsFalse(r.Output.Contains("Version='2.5.10"));\r
+    }\r
   }\r
 }
\ No newline at end of file