File tree Expand file tree Collapse file tree
StyleCop.Analyzers/StyleCop.Analyzers.Test Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ // Copyright (c) Tunnel Vision Laboratories, LLC. All Rights Reserved.
2+ // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
3+
4+ namespace StyleCop . Analyzers . Test
5+ {
6+ using Xunit ;
7+
8+ public class AttributeTests
9+ {
10+ [ Fact ]
11+ public void TestNoCodeFixAttributeReason ( )
12+ {
13+ string reason = "Reason" ;
14+ var attribute = new NoCodeFixAttribute ( reason ) ;
15+ Assert . Same ( reason , attribute . Reason ) ;
16+ }
17+
18+ [ Fact ]
19+ public void TestNoDiagnosticAttributeReason ( )
20+ {
21+ string reason = "Reason" ;
22+ var attribute = new NoDiagnosticAttribute ( reason ) ;
23+ Assert . Same ( reason , attribute . Reason ) ;
24+ }
25+ }
26+ }
Original file line number Diff line number Diff line change 113113 </Reference >
114114 </ItemGroup >
115115 <ItemGroup >
116+ <Compile Include =" AttributeTests.cs" />
116117 <Compile Include =" DocumentationRules\FileHeaderTestBase.cs" />
117118 <Compile Include =" DocumentationRules\InheritdocCodeFixProviderUnitTests.cs" />
118119 <Compile Include =" DocumentationRules\NoXmlFileHeaderUnitTests.cs" />
You can’t perform that action at this time.
0 commit comments