當前位置: 首頁>>代碼示例>>C#>>正文


C# TestCounts.GetCount方法代碼示例

本文整理匯總了C#中fitSharp.Fit.Model.TestCounts.GetCount方法的典型用法代碼示例。如果您正苦於以下問題:C# TestCounts.GetCount方法的具體用法?C# TestCounts.GetCount怎麽用?C# TestCounts.GetCount使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在fitSharp.Fit.Model.TestCounts的用法示例。


在下文中一共展示了TestCounts.GetCount方法的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: CheckCounts

 public static void CheckCounts(TestCounts counts, int right, int wrong, int ignore, int exception)
 {
     Assert.AreEqual(right, counts.GetCount(TestStatus.Right));
     Assert.AreEqual(wrong, counts.GetCount(TestStatus.Wrong));
     Assert.AreEqual(ignore, counts.GetCount(TestStatus.Ignore));
     Assert.AreEqual(exception, counts.GetCount(TestStatus.Exception));
 }
開發者ID:nhajratw,項目名稱:fitsharp,代碼行數:7,代碼來源:TestUtils.cs

示例2: WriteCounts

 void WriteCounts(TestCounts summary, string tag) {
     writer.WriteStartElement(tag);
     writer.WriteElementString("right", summary.GetCount(TestStatus.Right).ToString());
     writer.WriteElementString("wrong", summary.GetCount(TestStatus.Wrong).ToString());
     writer.WriteElementString("ignores", summary.GetCount(TestStatus.Ignore).ToString());
     writer.WriteElementString("exceptions", summary.GetCount(TestStatus.Exception).ToString());
     writer.WriteEndElement();
 }
開發者ID:GibSral,項目名稱:fitsharp,代碼行數:8,代碼來源:XmlResultWriter.cs

示例3: FormatCounts

		public static String FormatCounts(TestCounts status)
		{
			var builder = new StringBuilder();
			builder.Append(FormatInteger(0));
			builder.Append(FormatInteger(status.GetCount(TestStatus.Right)));
			builder.Append(FormatInteger(status.GetCount(TestStatus.Wrong)));
			builder.Append(FormatInteger(status.GetCount(TestStatus.Ignore)));
			builder.Append(FormatInteger(status.GetCount(TestStatus.Exception)));
			return builder.ToString();
		}
開發者ID:GibSral,項目名稱:fitsharp,代碼行數:10,代碼來源:Protocol.cs

示例4: TallyCounts

 public void TallyCounts(TestCounts other) {
     foreach (string cellStatus in other.counts.Keys) counts[cellStatus] = GetCount(cellStatus) + other.GetCount(cellStatus);
 }
開發者ID:GibSral,項目名稱:fitsharp,代碼行數:3,代碼來源:TestCounts.cs

示例5: Subtract

 public TestCounts Subtract(TestCounts other) {
     var result = new TestCounts(this);
     foreach (string cellStatus in other.counts.Keys) result.counts[cellStatus] = result.GetCount(cellStatus) - other.GetCount(cellStatus);
     return result;
 }
開發者ID:GibSral,項目名稱:fitsharp,代碼行數:5,代碼來源:TestCounts.cs

示例6: CheckCounts

 public static void CheckCounts(TestCounts counts, int right, int wrong, int ignore, int exception)
 {
     Assert.AreEqual(right, counts.GetCount(CellAttributes.RightStatus));
     Assert.AreEqual(wrong, counts.GetCount(CellAttributes.WrongStatus));
     Assert.AreEqual(ignore, counts.GetCount(CellAttributes.IgnoreStatus));
     Assert.AreEqual(exception, counts.GetCount(CellAttributes.ExceptionStatus));
 }
開發者ID:vaibhavsapre,項目名稱:fitsharp,代碼行數:7,代碼來源:TestUtils.cs

示例7: ResultComment

 static string ResultComment(TestCounts counts)
 {
     return "<!--"
            + Clock.Instance.Now.ToString("yyyy-MM-dd HH:mm:ss,")
            + counts.GetCount(TestStatus.Right) + ","
            + counts.GetCount(TestStatus.Wrong) + ","
            + counts.GetCount(TestStatus.Ignore) + ","
            + counts.GetCount(TestStatus.Exception) + "-->"
            + Environment.NewLine;
 }
開發者ID:jediwhale,項目名稱:fitsharp,代碼行數:10,代碼來源:StoryTestFile.cs


注:本文中的fitSharp.Fit.Model.TestCounts.GetCount方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。