开发者

Unit Test Description question

开发者 https://www.devze.com 2023-03-28 21:42 出处:网络
There i开发者_JAVA百科s a description entry for Unit Tests in Visual Studio. Is it possible to modify a test description after creation?[TestMethod]

There i开发者_JAVA百科s a description entry for Unit Tests in Visual Studio. Is it possible to modify a test description after creation?


 [TestMethod]
 [Microsoft.VisualStudio.TestTools.UnitTesting.Description("Test Case Description")]
 public void EnsureTestCaseValid()
 {      
 }


The Description column in the Test View is readonly, but if you select a test and look in the Properties window, you'll find that the Description property is editable. This will add a [Description("string")] attribute to the test.

0

精彩评论

暂无评论...
验证码 换一张
取 消