当前位置: 首页>>代码示例>>C#>>正文


C# Cell.SetAttribute方法代码示例

本文整理汇总了C#中Cell.SetAttribute方法的典型用法代码示例。如果您正苦于以下问题:C# Cell.SetAttribute方法的具体用法?C# Cell.SetAttribute怎么用?C# Cell.SetAttribute使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Cell的用法示例。


在下文中一共展示了Cell.SetAttribute方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: ShowActual

        static void ShowActual(Cell cell, object actual) {
            cell.SetAttribute(
                CellAttribute.InformationSuffix,
                actual == null ? "null"
	            : actual.ToString().Length == 0 ? "blank"
	            : actual.ToString());
	    }
开发者ID:GibSral,项目名称:fitsharp,代码行数:7,代码来源:Binding.cs

示例2: MarkCellWithCounts

 void MarkCellWithCounts(Cell target, TestCounts beforeCounts)
 {
     string style = Processor.TestStatus.Counts.Subtract(beforeCounts).Style;
     if (!string.IsNullOrEmpty(style) && string.IsNullOrEmpty(target.GetAttribute(CellAttribute.Status))) {
         target.SetAttribute(CellAttribute.Status, style);
     }
 }
开发者ID:JeffryGonzalez,项目名称:fitsharp,代码行数:7,代码来源:ExecuteDefault.cs

示例3: MarkException

        public void MarkException(Cell cell, System.Exception exception) {
            if (exception is IgnoredException) return;

            System.Exception abandonException = GetAbandonException(exception);

            if (abandonException != null && IsAbandoned) throw abandonException;

            if (cell.GetAttribute(CellAttribute.Status) != Exception) {
                cell.SetAttribute(CellAttribute.Exception, exception.ToString());
                cell.SetAttribute(CellAttribute.Status, Exception);
                AddCount(Exception);
            }

            if (abandonException == null) return;

            IsAbandoned = true;
            if (abandonException is AbandonSuiteException) SuiteIsAbandoned = true;
            throw abandonException;
        }
开发者ID:GibSral,项目名称:fitsharp,代码行数:19,代码来源:TestStatus.cs

示例4: MarkException

        public void MarkException(Cell cell, System.Exception exception)
        {
            if (exception is IgnoredException) return;

            System.Exception abandonException = GetAbandonStoryTestException(exception);

            if (abandonException != null && IsAbandoned) throw abandonException;

            if (cell.GetAttribute(CellAttributes.StatusKey) != CellAttributes.ExceptionStatus) {
                cell.SetAttribute(CellAttributes.ExceptionKey, exception.ToString());
                cell.SetAttribute(CellAttributes.StatusKey, CellAttributes.ExceptionStatus);
                AddCount(CellAttributes.ExceptionStatus);
            }

            if (abandonException == null) return;

            IsAbandoned = true;
            throw abandonException;
        }
开发者ID:vaibhavsapre,项目名称:fitsharp,代码行数:19,代码来源:TestStatus.cs

示例5: MarkWithCounts

 void MarkWithCounts(Cell cell, TestCounts beforeCounts)
 {
     var style = Counts.Subtract(beforeCounts).Style;
     if (!string.IsNullOrEmpty(style) && string.IsNullOrEmpty(cell.GetAttribute(CellAttribute.Status))) {
         cell.SetAttribute(CellAttribute.Status, style);
     }
 }
开发者ID:yhtest,项目名称:fitsharp,代码行数:7,代码来源:TestStatus.cs

示例6: MarkWrong

 public void MarkWrong(Cell cell, string actual)
 {
     cell.SetAttribute(CellAttribute.Actual, actual);
     MarkWrong(cell);
 }
开发者ID:yhtest,项目名称:fitsharp,代码行数:5,代码来源:TestStatus.cs

示例7: MarkRight

 public void MarkRight(Cell cell)
 {
     cell.SetAttribute(CellAttribute.Status, Right);
     AddCount(Right);
 }
开发者ID:yhtest,项目名称:fitsharp,代码行数:5,代码来源:TestStatus.cs

示例8: MarkIgnore

 public void MarkIgnore(Cell cell)
 {
     cell.SetAttribute(CellAttribute.Status, Ignore);
     AddCount(Ignore);
 }
开发者ID:yhtest,项目名称:fitsharp,代码行数:5,代码来源:TestStatus.cs

示例9: MarkCellWithLastResults

 void MarkCellWithLastResults(Cell cell, Action<Cell> markWithCounts)
 {
     if (cell != null && !string.IsNullOrEmpty(LastAction)) {
         cell.SetAttribute(CellAttribute.Folded, LastAction);
         markWithCounts(cell);
     }
     LastAction = null;
 }
开发者ID:kpartusch,项目名称:fitsharp,代码行数:8,代码来源:TestStatus.cs

示例10: EndCell

 void EndCell(Cell cell) {
     if (!cells.ContainsKey(cell)) return;
     var stopwatch = cells[cell];
     stopwatch.Stop();
     cell.SetAttribute(CellAttribute.Title, string.Format("elapsed: {0} ms", stopwatch.ElapsedMilliseconds));
 }
开发者ID:GibSral,项目名称:fitsharp,代码行数:6,代码来源:ElapsedTime.cs

示例11: MarkRight

 public void MarkRight(Cell cell)
 {
     cell.SetAttribute(CellAttributes.StatusKey, CellAttributes.RightStatus);
     AddCount(CellAttributes.RightStatus);
 }
开发者ID:vaibhavsapre,项目名称:fitsharp,代码行数:5,代码来源:TestStatus.cs

示例12: MarkIgnore

 public void MarkIgnore(Cell cell)
 {
     cell.SetAttribute(CellAttributes.StatusKey, CellAttributes.IgnoreStatus);
     AddCount(CellAttributes.IgnoreStatus);
 }
开发者ID:vaibhavsapre,项目名称:fitsharp,代码行数:5,代码来源:TestStatus.cs

示例13: MarkWrong

 public void MarkWrong(Cell cell)
 {
     cell.SetAttribute(CellAttributes.StatusKey, CellAttributes.WrongStatus);
     AddCount(CellAttributes.WrongStatus);
 }
开发者ID:vaibhavsapre,项目名称:fitsharp,代码行数:5,代码来源:TestStatus.cs


注:本文中的Cell.SetAttribute方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。