コード例 #1
0
        /// <summary>
        /// Constructor for TestListCategory .
        /// </summary>
        /// <param name="name">The name of new category.</param>
        /// <param name="parentCategoryId">Id of parent category. Use TestListCategoryId.Root for top level categories.</param>
        public TestListCategory(string name, TestListCategoryId parentCategoryId)
        {
            EqtAssert.StringNotNullOrEmpty(name, "name");
            EqtAssert.ParameterNotNull(parentCategoryId, "parentCategoryId");

            this.name             = name;
            this.parentCategoryId = parentCategoryId;
        }
コード例 #2
0
ファイル: TestEntry.cs プロジェクト: acole94/SimpleLogger
        /// <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;
        }
コード例 #3
0
        /// <summary>
        /// Override function for Equals.
        /// </summary>
        /// <param name="other">
        /// The object to compare.
        /// </param>
        /// <returns>
        /// The <see cref="bool"/>.
        /// </returns>
        public override bool Equals(object other)
        {
            TestListCategoryId testListCategoryId = other as TestListCategoryId;

            if (testListCategoryId == null)
            {
                return(false);
            }

            return(this.id.Equals(testListCategoryId.id));
        }
コード例 #4
0
 public UnitTestResult(
     Guid runId,
     Guid testId,
     Guid executionId,
     Guid parentExecutionId,
     string resultName,
     string computerName,
     string ticketNumber,
     TestOutcome outcome,
     TestType testType,
     TestListCategoryId testCategoryId) : base(runId, testId, executionId, parentExecutionId, resultName, computerName, ticketNumber, outcome, testType, testCategoryId)
 {
 }
コード例 #5
0
 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;
 }
コード例 #6
0
 /// <summary>
 /// Used internally for fake uncategorized category.
 /// </summary>
 /// <param name="name">
 /// Category name.
 /// </param>
 /// <param name="id">
 /// Category id.
 /// </param>
 /// <param name="parentId">
 /// The parent Id.
 /// </param>
 private TestListCategory(string name, TestListCategoryId id, TestListCategoryId parentId) : this(name, parentId)
 {
     EqtAssert.ParameterNotNull(id, "id");
     this.id = id;
 }