Ejemplo n.º 1
0
        /// <summary>
        /// This is the method that actually returns the data that will be parameterized into the
        /// xUnit test method. We actually don't use the base class logic at all,
        /// we just get the scenarios for the specified project name and return them.
        /// </summary>
        /// <param name="testMethod">MethodInfo of the method being decorated</param>
        /// <returns>The test data</returns>
        public override IEnumerable <object[]> GetData(MethodInfo testMethod)
        {
            // get the scenarios
            var scenarios = MauiTestHelper.GetScenarios(_projectName);

            // convert the data to the expected format
            return(scenarios.Select(x => new object[] { x }));
        }
 public void MauiLabelTests(string scenarioName)
 {
     MauiTestHelper.ValidateScenarioPassed(ProjectName, scenarioName);
 }
 public void MauiToolStripTest(string scenarioName)
 {
     MauiTestHelper.ValidateScenarioPassed(ProjectName, scenarioName);
 }
Ejemplo n.º 4
0
 public void MauiPropertyGridViewTests(string scenarioName)
 {
     MauiTestHelper.ValidateScenarioPassed(ProjectName, scenarioName);
 }
 public void MauiImageListTests(string scenarioName)
 {
     MauiTestHelper.ValidateScenarioPassed(ProjectName, scenarioName, _output);
 }
Ejemplo n.º 6
0
 public void MauiPrintPreviewDialogTests(string scenarioName)
 {
     MauiTestHelper.ValidateScenarioPassed(ProjectName, scenarioName);
 }
 public void MauiMonthCalendarTest(string scenarioName)
 {
     MauiTestHelper.ValidateScenarioPassed(ProjectName, scenarioName);
 }
 public void MauiXDataFormatsTests(string scenarioName)
 {
     MauiTestHelper.ValidateScenarioPassed(ProjectName, scenarioName);
 }