File tree Expand file tree Collapse file tree
StyleCop.Analyzers/StyleCop.Analyzers.Test.CSharp8/LayoutRules Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33
44namespace StyleCop . Analyzers . Test . CSharp8 . LayoutRules
55{
6+ using System . Threading ;
7+ using System . Threading . Tasks ;
8+ using Microsoft . CodeAnalysis . Testing ;
69 using StyleCop . Analyzers . Test . CSharp7 . LayoutRules ;
10+ using Xunit ;
11+ using static StyleCop . Analyzers . Test . Verifiers . StyleCopCodeFixVerifier <
12+ StyleCop . Analyzers . LayoutRules . SA1514ElementDocumentationHeaderMustBePrecededByBlankLine ,
13+ StyleCop . Analyzers . LayoutRules . SA1514CodeFixProvider > ;
714
815 public class SA1514CSharp8UnitTests : SA1514CSharp7UnitTests
916 {
17+ [ Fact ]
18+ [ WorkItem ( 3067 , "https://github.com/DotNetAnalyzers/StyleCopAnalyzers/issues/3067" ) ]
19+ public async Task TestValidPropertyDeclarationAsync ( )
20+ {
21+ var testCode = @"namespace TestNamespace
22+ {
23+ public class TestClass
24+ {
25+ /// <summary>
26+ /// Gets or sets the value.
27+ /// </summary>
28+ public string SomeString { get; set; } = null!;
29+
30+ /// <summary>
31+ /// Gets or sets the value.
32+ /// </summary>
33+ public string AnotherString { get; set; } = null!;
34+ }
35+ }
36+ " ;
37+
38+ await VerifyCSharpDiagnosticAsync ( testCode , DiagnosticResult . EmptyDiagnosticResults , CancellationToken . None ) . ConfigureAwait ( false ) ;
39+ }
1040 }
1141}
You can’t perform that action at this time.
0 commit comments