コード例 #1
0
		public static void Create (NewFileOptions options, Action<string> takeScreenshot = null)
		{
			var ctrl = new NewFileController (takeScreenshot);
			ctrl.Open ();
			ctrl.ConfigureAddToProject (!string.IsNullOrEmpty (options.AddToProjectName), options.AddToProjectName);
			ctrl.SelectFileTypeCategory (options.FileTypeCategory, options.FileTypeCategoryRoot);
			ctrl.SelectFileType (options.FileType);
			ctrl.EnterFileName (options.FileName);
			ctrl.Done ();
		}
コード例 #2
0
        public static void Create(NewFileOptions options, Action <string> takeScreenshot = null)
        {
            var ctrl = new NewFileController(takeScreenshot);

            ctrl.Open();
            ctrl.ConfigureAddToProject(!string.IsNullOrEmpty(options.AddToProjectName), options.AddToProjectName);
            ctrl.SelectFileTypeCategory(options.FileTypeCategory, options.FileTypeCategoryRoot);
            ctrl.SelectFileType(options.FileType);
            ctrl.EnterFileName(options.FileName);
            ctrl.Done();
        }
コード例 #3
0
		public static void Create (NewFileOptions options, UITestBase testContext = null)
		{
			options.PrintData ();
			Action<string> screenshotAction = (s) => {};
			if (testContext != null) {
				testContext.ReproStep (string.Format ("Add a new file of type '{0}' named '{1}'", 
					options.FileType, options.FileName), options);
				screenshotAction = testContext.TakeScreenShot;
			}

			var ctrl = new NewFileController (screenshotAction);
			ctrl.Open ();
			ctrl.ConfigureAddToProject (!string.IsNullOrEmpty (options.AddToProjectName), options.AddToProjectName);
			ctrl.SelectFileTypeCategory (options.FileTypeCategory, options.FileTypeCategoryRoot);
			ctrl.SelectFileType (options.FileType);
			ctrl.EnterFileName (options.FileName);
			ctrl.Done ();
		}
コード例 #4
0
        public static void Create(NewFileOptions options, UITestBase testContext = null)
        {
            options.PrintData();
            Action <string> screenshotAction = (s) => {};

            if (testContext != null)
            {
                testContext.ReproStep(string.Format("Add a new file of type '{0}' named '{1}'",
                                                    options.FileType, options.FileName), options);
                screenshotAction = testContext.TakeScreenShot;
            }

            var ctrl = new NewFileController(screenshotAction);

            ctrl.Open();
            ctrl.ConfigureAddToProject(!string.IsNullOrEmpty(options.AddToProjectName), options.AddToProjectName);
            ctrl.SelectFileTypeCategory(options.FileTypeCategory, options.FileTypeCategoryRoot);
            ctrl.SelectFileType(options.FileType);
            ctrl.EnterFileName(options.FileName);
            ctrl.Done();
        }