예제 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TestCase"/> class.
 /// </summary>
 /// <param name="utteranceId">Utterance ID.</param>
 /// <param name="resultKind">Confusion matrix result kind.</param>
 /// <param name="targetKind">Comparison target kind.</param>
 /// <param name="expectedUtterance">Expected utterance.</param>
 /// <param name="actualUtterance">Actual utterance.</param>
 /// <param name="score">Confidence score for test case result.</param>
 /// <param name="group">Test case group name.</param>
 /// <param name="testName">Test name.</param>
 /// <param name="because">Because.</param>
 /// <param name="categories">Categories.</param>
 public TestCase(
     string utteranceId,
     ConfusionMatrixResultKind resultKind,
     ComparisonTargetKind targetKind,
     ILabeledUtterance expectedUtterance,
     ILabeledUtterance actualUtterance,
     double?score,
     string group,
     string testName,
     string because,
     IEnumerable <string> categories)
 {
     this.UtteranceId       = utteranceId;
     this.ResultKind        = resultKind;
     this.TargetKind        = targetKind;
     this.ExpectedUtterance = expectedUtterance;
     this.ActualUtterance   = actualUtterance;
     this.Score             = score;
     this.Group             = group;
     this.TestName          = testName;
     this.Because           = because;
     this.Categories        = categories.ToList();
 }