GetNamedItemSuppresionAttributeDetails() публичный Метод

public GetNamedItemSuppresionAttributeDetails ( ) : IList
Результат IList
        public void BasicReassignmentsWithIncorrectlyIngoredParameters_YieldsDiagnostics()
        {
            var analyzer = new AA1300ParametersShouldNotBeModifiedAnalyzer();
            var analyzerCommonExpected = new DiagnosticResultCommonProperties(analyzer);
            var analyzerSuppressionCommonExpected =
                new DiagnosticResultCommonProperties(analyzer.GetNamedItemSuppresionAttributeDetails()[0]);

            var expected1 =
                new DiagnosticResult(analyzerSuppressionCommonExpected,
                                     Format(Resources.AA1300ParametersShouldNotBeModifiedSuppresionMisuseMessageFormat,
                                            "y"),
                                     Option<DiagnosticLocation>.Some(new DiagnosticLocation(10, 27, 30)));

            var expected2 =
                new DiagnosticResult(analyzerSuppressionCommonExpected,
                                     Format(Resources.AA1300ParametersShouldNotBeModifiedSuppresionMisuseMessageFormat,
                                            "z"),
                                     Option<DiagnosticLocation>.Some(new DiagnosticLocation(10, 32, 35)));

            var expected3 =
                new DiagnosticResult(analyzerCommonExpected,
                                     Format(Resources.AA1300ParametersShouldNotBeModifiedMessageFormat,
                                            "a"),
                                     Option<DiagnosticLocation>.Some(new DiagnosticLocation(13, 13, 18)));

            var expected4 =
                new DiagnosticResult(analyzerCommonExpected,
                                     Format(Resources.AA1300ParametersShouldNotBeModifiedMessageFormat,
                                            "b"),
                                     Option<DiagnosticLocation>.Some(new DiagnosticLocation(14, 13, 19)));

            var expected5 =
                new DiagnosticResult(analyzerCommonExpected,
                                     Format(Resources.AA1300ParametersShouldNotBeModifiedMessageFormat,
                                            "b"),
                                     Option<DiagnosticLocation>.Some(new DiagnosticLocation(20, 17, 31)));

            DiagnosticVerifier.VerifyDiagnostics<AA1300ParametersShouldNotBeModifiedAnalyzer>(
                @"..\..\CodeUnderTest\CodeToTestParameterReassignment.cs",
                expected1,
                expected2,
                expected3,
                expected4,
                expected5);
        }