Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManish Sinha <manish.sinha@xamarin.com>2015-06-22 02:25:57 +0300
committerManish Sinha <manish.sinha@xamarin.com>2015-06-22 19:22:00 +0300
commitcaa7222a5f0258e8fc00fb93f94010d0e0993f5e (patch)
tree9d025d41db4b5e46350045ffd7af2655e19137a7 /main/tests/UserInterfaceTests/DialogTests
parent0b50e34ed83b7eadeaf99cabcebd86490d986628 (diff)
[UITest] Added NuGet Add Package Test and Added NuGetController
* Moved Controllers under a single Folder
Diffstat (limited to 'main/tests/UserInterfaceTests/DialogTests')
-rw-r--r--main/tests/UserInterfaceTests/DialogTests/NuGetDialogTests.cs65
1 files changed, 65 insertions, 0 deletions
diff --git a/main/tests/UserInterfaceTests/DialogTests/NuGetDialogTests.cs b/main/tests/UserInterfaceTests/DialogTests/NuGetDialogTests.cs
new file mode 100644
index 0000000000..bd97ab3c39
--- /dev/null
+++ b/main/tests/UserInterfaceTests/DialogTests/NuGetDialogTests.cs
@@ -0,0 +1,65 @@
+//
+// NuGetDialogTests.cs
+//
+// Author:
+// Manish Sinha <manish.sinha@xamarin.com>
+//
+// Copyright (c) 2015 Xamarin Inc.
+//
+// Permission is hereby granted, free of charge, to any person obtaining a copy
+// of this software and associated documentation files (the "Software"), to deal
+// in the Software without restriction, including without limitation the rights
+// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+// copies of the Software, and to permit persons to whom the Software is
+// furnished to do so, subject to the following conditions:
+//
+// The above copyright notice and this permission notice shall be included in
+// all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+// THE SOFTWARE.
+
+using NUnit.Framework;
+
+namespace UserInterfaceTests
+{
+ [TestFixture]
+ [Category ("Dialog")]
+ [Category ("PackagesDialog")]
+ public class NuGetDialogTests : CreateBuildTemplatesTestBase
+ {
+ [Test]
+ public void AddPackagesTest ()
+ {
+ CreateProject ();
+ NuGetController.AddPackage (new NuGetPackageOptions {
+ PackageName = "CommandLineParser",
+ Version = "2.0.1-pre",
+ IsPreRelease = true
+ });
+ }
+
+ ProjectDetails CreateProject ()
+ {
+ var templateOptions = new TemplateSelectionOptions {
+ CategoryRoot = OtherCategoryRoot,
+ Category = ".NET",
+ TemplateKindRoot = GeneralKindRoot,
+ TemplateKind = "Console Project"
+ };
+ var projectDetails = new ProjectDetails (templateOptions);
+ CreateProject (templateOptions,
+ projectDetails,
+ new GitOptions { UseGit = true, UseGitIgnore = true});
+ Session.WaitForElement (IdeQuery.TextArea);
+ FoldersToClean.Add (projectDetails.SolutionLocation);
+ return projectDetails;
+ }
+ }
+}
+