当前位置: 首页>>代码示例>>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;未经允许,请勿转载。