File tree Expand file tree Collapse file tree
PropertyChangedAnalyzers.Test Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11#pragma warning disable CA1056 // Uri properties should not be strings
2+ #pragma warning disable CA1307 // Specify StringComparison for clarity
23namespace PropertyChangedAnalyzers . Test
34{
45 using System ;
@@ -70,10 +71,7 @@ public static void TitleId(DescriptorInfo descriptorInfo)
7071 public static void Title ( DescriptorInfo descriptorInfo )
7172 {
7273 var expected = $ "## { descriptorInfo . Descriptor . Title } ";
73- var actual = descriptorInfo . DocumentationFile . AllLines
74- . Skip ( 1 )
75- . First ( )
76- . Replace ( "`" , string . Empty ) ;
74+ var actual = descriptorInfo . DocumentationFile . AllLines [ 1 ] . Replace ( "`" , string . Empty ) ;
7775 Assert . AreEqual ( expected , actual ) ;
7876 }
7977
@@ -318,7 +316,7 @@ public CodeFile(string name)
318316
319317 public string Name { get ; }
320318
321- public string Uri => "https://github.com/DotNetAnalyzers/PropertyChangedAnalyzers/blob/master" + this . Name . Substring ( SolutionDirectory . FullName . Length )
319+ public string Uri => "https://github.com/DotNetAnalyzers/PropertyChangedAnalyzers/blob/master" + this . Name [ SolutionDirectory . FullName . Length .. ]
322320 . Replace ( "\\ " , "/" ) ;
323321
324322 public static CodeFile Find ( Type type )
You can’t perform that action at this time.
0 commit comments