protected override void OnCreateTests ()
		{
			if (TestInfo.Tests == null)
				return;

			foreach (var info in TestInfo.Tests) {
				UnitTest test;
				if (info.Tests != null)
					test = new XUnitTestSuite (rootSuite, executor, info);
				else
					test = new XUnitTestCase (rootSuite, executor, info);
				Tests.Add (test);
			}
		}
        void FillTests(XUnitTestInfo testInfo)
        {
            if (testInfo == null || testInfo.Tests == null)
            {
                return;
            }

            foreach (var child in testInfo.Tests)
            {
                UnitTest test;
                if (child.Tests == null)
                {
                    test = new XUnitTestCase(this, executor, child);
                }
                else
                {
                    test = new XUnitTestSuite(this, executor, child);
                }
                Tests.Add(test);
            }
        }
        protected override void OnCreateTests()
        {
            if (TestInfo.Tests == null)
            {
                return;
            }

            foreach (var info in TestInfo.Tests)
            {
                UnitTest test;
                if (info.Tests != null)
                {
                    test = new XUnitTestSuite(rootSuite, executor, info);
                }
                else
                {
                    test = new XUnitTestCase(rootSuite, executor, info);
                }
                Tests.Add(test);
            }
        }
 public UnitTestResult RunTestCase(XUnitAssemblyTestSuite rootSuite, XUnitTestCase testCase, TestContext context)
 {
     return(Run(new List <XUnitTestCase> {
         testCase
     }, rootSuite, testCase, context, false));
 }
Beispiel #5
0
 public VirtualTest(XUnitTestCase testCase, int i) : base(string.Format("{0} ({1})", testCase.FullName, i))
 {
     this.testCase = testCase;
 }
			public VirtualTest (XUnitTestCase testCase, int i): base (string.Format("{0} ({1})", testCase.FullName, i))
			{
				this.testCase = testCase;
			}
		void FillTests (XUnitTestInfo testInfo)
		{
			if (testInfo == null || testInfo.Tests == null)
				return;

			foreach (var child in testInfo.Tests) {
				UnitTest test;
				if (child.Tests == null)
					test = new XUnitTestCase (this, executor, child);
				else
					test = new XUnitTestSuite (this, executor, child);
				Tests.Add (test);
			}
		}
		public UnitTestResult RunTestCase (XUnitAssemblyTestSuite rootSuite, XUnitTestCase testCase, TestContext context)
		{
			return Run (new List<XUnitTestCase> { testCase }, rootSuite, testCase, context, false);
		}