rspec/rules/S3430/csharp/rule.adoc
2022-02-04 16:28:24 +00:00

21 lines
453 B
Plaintext

In general, ``++async++`` ``++void++`` test methods are not executed by test frameworks, therefore it's better to avoid them altogether.
== Noncompliant Code Example
[source,csharp]
----
[TestMethod]
public async void MyIgnoredTestMethod() // Noncompliant
{ /* ... */ }
----
ifdef::env-github,rspecator-view[]
'''
== Comments And Links
(visible only on this page)
include::comments-and-links.adoc[]
endif::env-github,rspecator-view[]