// Leaving in for possible future use private string createTestCasePostData(string testCaseRunId, TestCaseStatus status) { string postData = "<TestCaseruns>" + "<TestCaseRun>" + "<Id>" + testCaseRunId + "</Id>" + "<Status>" + status.ToString() + "</Status>" + "</TestCaseRun>" + "</TestCaseruns>"; return(postData); }
/// <summary> /// Constructor /// </summary> /// <param name="name">Name of the test case</param> /// <param name="status">The status of the test case</param> public CaseListItem(string name, TestCaseStatus status) { Name = name; Outcome = status == TestCaseStatus.Other ? "Inconclusive" : status.ToString(); }
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) { TestCaseStatus status = (TestCaseStatus)value; string outcome = status == TestCaseStatus.Other ? "Inconclusive" : status.ToString(); writer.WriteValue(outcome); }
/// <summary> /// Constructor /// </summary> /// <param name="name">Name of the test case</param> /// <param name="status">The status of the test case</param> public CaseListItem(string name, TestCaseStatus status) { Name = name; Outcome = status == TestCaseStatus.Other ? "Inconclusive" : status.ToString(); }