Description (NUnit 2.4)

Description特性给Test, TestFixture or Assembly应用一个描述性文字。这些文字会显示在输出的XML文档中,在Test Property对话框也会显示。

Example:

[assembly: Description("Assembly description here")]

namespace NUnit.Tests
{
  using System;
  using NUnit.Framework;

  [TestFixture, Description("Fixture description here")]
  public class SomeTests
  {
    [Test, Description("Test description here")] 
    public void OneTest()
    { /* ... */ }
  }
}
View Code

相关文章:

  • 2021-10-10
  • 2021-06-22
  • 2021-06-16
  • 2021-12-19
  • 2021-11-18
  • 2021-10-28
  • 2021-06-04
  • 2021-09-05
猜你喜欢
  • 2021-07-11
  • 2021-09-22
  • 2021-08-18
  • 2021-11-24
  • 2021-05-21
  • 2021-06-24
  • 2021-11-07
相关资源
相似解决方案