rspec/rules/S3430/csharp/rule.adoc

23 lines
480 B
Plaintext
Raw Normal View History

== Why is this an issue?
In general, ``++async++`` ``++void++`` test methods are not executed by test frameworks, therefore it's better to avoid them altogether.
=== Noncompliant code example
2022-02-04 17:28:24 +01:00
[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[]