/// <summary> /// Constructor. /// Note that using this constructor has different effect as setting CategoryId property. /// When using this constructor, catId is used as specified, which CategoryId.set changes null to the root cat. /// </summary> /// <param name="testId">Test Id.</param> /// <param name="catId">Category Id. This gets into .</param> public TestEntry(TestId testId, TestListCategoryId catId) { Debug.Assert(testId != null, "testId is null"); // CatId can be null. this.testId = testId; this.categoryId = catId; }
public TestElement(Guid id, string name, string adapter) { Debug.Assert(!string.IsNullOrEmpty(name), "name is null"); Debug.Assert(!string.IsNullOrEmpty(adapter), "adapter is null"); this.Initialize(); this.id = new TestId(id); this.name = name; this.adapter = adapter; }
private void Initialize() { this.id = TestId.Empty; this.name = string.Empty; this.owner = string.Empty; this.priority = DefaultPriority; this.storage = string.Empty; this.executionId = TestExecId.Empty; this.parentExecutionId = TestExecId.Empty; this.testCategories = new TestCategoryItemCollection(); this.isRunnable = true; this.catId = TestListCategoryId.Uncategorized; }