コード例 #1
0
ファイル: XunitRunner.cs プロジェクト: layomia/dotnet_runtime
 private static IEnumerable <object[]> GenerateTestCasesForModule(CTestModule module)
 {
     foreach (OLEDB.Test.ModuleCore.XunitTestCase testCase in module.TestCases())
     {
         yield return(new object[] { testCase });
     }
 }
コード例 #2
0
ファイル: ctestcase.cs プロジェクト: rsumner31/corefx2
        public virtual tagVARIATION_STATUS ExecuteVariation(int index)
        {
            //Track the test case we're in
            CTestModule testmodule = this.TestModule;

            if (testmodule != null)
            {
                testmodule.CurTestCase = this;
            }

            //Track which variation were executing
            _curvariation = (CVariation)Children[index];

            int result = TEST_FAIL;

            if (_curvariation.Skipped || !_curvariation.Implemented)
            {
                //Skipped
                result = TEST_SKIPPED;
            }
            else
            {
                //Execute
                result = ExecuteVariation(index, _curvariation.Param);
            }

            //Before exiting make sure we reset our CurVariation to null, to prevent
            //incorrect uses of CurVariation within the TestCase, but not actually a running
            //variation.  This will only be valid within a function with a //[Variation] attribute...
            _curvariation = null;
            return((tagVARIATION_STATUS)result);
        }
コード例 #3
0
ファイル: CXmlDriverScenario.cs プロジェクト: johnhhm/corefx
 internal CXmlDriverErrorTestCase(string name, string desc, Exception e, tagVARIATION_STATUS returnCode, CTestModule testModule) :
     base(testModule, (desc.Length > 1000 ? desc.Substring(0, 1000) + "..." : desc))
 {
     this.Name = name;
     _exception = e;
     _returnCode = returnCode;
 }
コード例 #4
0
ファイル: ctestcase.cs プロジェクト: rsumner31/corefx2
 public CTestCase(CTestModule parent, string desc)
     : base(desc)
 {
     Parent = parent;
 }
コード例 #5
0
ファイル: ctestcase.cs プロジェクト: johnhhm/corefx
 public CTestCase(CTestModule parent, string desc)
     : base(desc)
 {
     Parent = parent;
 }
コード例 #6
0
ファイル: CXmlDriverEngine.cs プロジェクト: ChuangYang/corefx
 public CXmlDriverEngine(CTestModule testModule)
 {
     _testModule = testModule;
     _testModuleParams = new List<CXmlDriverParam>();
 }
コード例 #7
0
ファイル: CXmlDriverScenario.cs プロジェクト: johnhhm/corefx
 internal CXmlDriverEmptyTestCase(string name, string desc, string message, CTestModule testModule) : base(testModule, desc)
 {
     this.Name = name;
     _message = message;
 }
コード例 #8
0
ファイル: CXmlDriverScenario.cs プロジェクト: johnhhm/corefx
 internal CXmlDriverErrorTestCase(string name, string desc, Exception e, CTestModule testModule) : this(name, desc, e, tagVARIATION_STATUS.eVariationStatusAborted, testModule) { }