Skip to content

Latest commit

 

History

History
50 lines (36 loc) · 1.29 KB

GU0083.md

File metadata and controls

50 lines (36 loc) · 1.29 KB

GU0083

TestCase Arguments Mismatch Method Parameters

Topic Value
Id GU0083
Severity Warning
Enabled True
Category Gu.Analyzers.Correctness
Code TestMethodAnalyzer

Description

TestCase Mismatches Method Parameters.

Motivation

ADD MOTIVATION HERE

How to fix violations

ADD HOW TO FIX VIOLATIONS HERE

Configure severity

Via ruleset file.

Configure the severity per project, for more info see MSDN.

Via #pragma directive.

#pragma warning disable GU0083 // TestCase Arguments Mismatch Method Parameters
Code violating the rule here
#pragma warning restore GU0083 // TestCase Arguments Mismatch Method Parameters

Or put this at the top of the file to disable all instances.

#pragma warning disable GU0083 // TestCase Arguments Mismatch Method Parameters

Via attribute [SuppressMessage].

[System.Diagnostics.CodeAnalysis.SuppressMessage("Gu.Analyzers.Correctness", 
    "GU0083:TestCase Arguments Mismatch Method Parameters", 
    Justification = "Reason...")]