예제 #1
0
 internal TestAdaptor(RemoteTestData test)
 {
     Id               = test.id;
     Name             = test.name;
     FullName         = test.ChildIndex != -1 ? GetIndexedTestCaseName(test.fullName, test.ChildIndex) : test.fullName;
     TestCaseCount    = test.testCaseCount;
     HasChildren      = test.hasChildren;
     IsSuite          = test.isSuite;
     m_ChildrenIds    = test.childrenIds;
     TestCaseTimeout  = test.testCaseTimeout;
     Categories       = test.Categories;
     IsTestAssembly   = test.IsTestAssembly;
     RunState         = (RunState)Enum.Parse(typeof(RunState), test.RunState.ToString());
     Description      = test.Description;
     SkipReason       = test.SkipReason;
     ParentId         = test.ParentId;
     UniqueName       = test.UniqueName;
     ParentUniqueName = test.ParentUniqueName;
 }
예제 #2
0
 public ITestAdaptor Create(RemoteTestData testData)
 {
     return(new TestAdaptor(testData));
 }