Skip to content

Commit

Permalink
Include the full test class in #if NET
Browse files Browse the repository at this point in the history
  • Loading branch information
costin-zaharia-sonarsource committed Mar 20, 2024
1 parent a2cfb45 commit ce45574
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,15 @@
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/

#if NET

using SonarAnalyzer.Rules.CSharp;

namespace SonarAnalyzer.Test.Rules;

[TestClass]
public class SpecifyRouteAttributeTest
{
#if NET
private readonly VerifierBuilder builder = new VerifierBuilder<SpecifyRouteAttribute>()
.WithOptions(ParseOptionsHelper.FromCSharp12)
.AddReferences([
Expand All @@ -39,5 +40,6 @@ public class SpecifyRouteAttributeTest
[TestMethod]
public void SpecifyRouteAttribute_CS() =>
builder.AddPaths("SpecifyRouteAttribute.cs").Verify();
#endif
}

#endif

0 comments on commit ce45574

Please sign in to comment.