Arnolyzer.Tests.Analyzers.EncapsulationAnalyzers.AA1101ClassPropertiesShouldBePubliclyRead_OnlyAnalyzer_Tests.AnalyzerCorrectlySetsItsDetails C# (CSharp) Метод

AnalyzerCorrectlySetsItsDetails() приватный Метод

private AnalyzerCorrectlySetsItsDetails ( ) : void
Результат void
        public void AnalyzerCorrectlySetsItsDetails()
        {
            var details = new AA1101ClassPropertiesShouldBePubliclyRead_OnlyAnalyzer().GetAnalyzerDetails();
            Assert.AreEqual(AnalyzerCategories.EncapsulationAnalyzers, details.Category);
            Assert.AreEqual("Class Properties Should Be Publicly Read-Only", details.Name);
            Assert.AreEqual("AA1101ClassPropertiesShouldBePubliclyReadOnly", details.DiagnosticId);
            Assert.AreEqual(Resources.AA1101ClassPropertiesShouldBePubliclyReadOnlyTitle, details.Title.ToString());
            Assert.AreEqual(Resources.AA1101ClassPropertiesShouldBePubliclyReadOnlyDescription, details.Description.ToString());
            Assert.AreEqual(Resources.AA1101ClassPropertiesShouldBePubliclyReadOnlyMessageFormat, details.MessageFormat.ToString());
        }