Example #1
0
 public TestCase(TestResultKind kind, string message, string because, IEnumerable <string> categories)
 {
     this.Kind       = kind;
     this.Message    = message;
     this.Because    = because;
     this.Categories = categories.ToList();
 }
 public TestCaseResult(string name, TestResultKind result, string comment)
 {
     this.Name = name;
     this.Result = result;
     this.Comment = comment;
     this.Variables = new List<TestVariableResult>();
     this.Commands = new List<TestCommandResult>();
 }
 public TestResult(string name, TestResultKind kind)
 {
     this.Name = name;
     this.Kind = kind;
 }
 private void AppendTestsFromCount(TestResultKind kind, string resultDetailSection)
 {
     int count;
     if (resultDetailSection.Length == 1)
     {
         if (int.TryParse(resultDetailSection, out count))
         {
             for (int i = 0; i < count; i++)
             {
                 var dummyTestResult = new TestResult(string.Empty, kind);
                 TestResults.AddTest(dummyTestResult);
             }
         }
     }
 }
 public TestCommandResult(TestCommandKind kind, string text, string expectedValue, string actualValue, TestResultKind result, string comment)
 {
     this.Kind = kind;
     this.Text = text;
     this.ExpectedValue = expectedValue;
     this.ActualValue = actualValue;
     this.Result = result;
     this.Comment = comment;
 }