File tree Expand file tree Collapse file tree
System.IO.Abstractions.Analyzers/Analyzers Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,17 +22,17 @@ public class FileServiceInterfaceInjectionAnalyzer : BaseFileSystemAnalyzer
2222 /// <summary>
2323 /// Diagnostic Title
2424 /// </summary>
25- private const string Title = "For improved application testability, use the IFileSystem. " ;
25+ private const string Title = "Use System.IO.Abstractions for improved application testability" ;
2626
2727 /// <summary>
2828 /// Diagnostic Message Format
2929 /// </summary>
30- public const string MessageFormat = "For improved application testability, use the IFileSystem. " ;
30+ public const string MessageFormat = "Use System.IO.Abstractions for improved application testability" ;
3131
3232 /// <summary>
3333 /// Diagnostic Description
3434 /// </summary>
35- private const string Description = "For improved application testability, use the IFileSystem. " ;
35+ private const string Description = "Use System.IO.Abstractions for improved application testability" ;
3636
3737 /// <summary>
3838 /// Правило
@@ -52,7 +52,7 @@ protected override void AnalyzeCompilation(CompilationStartAnalysisContext compi
5252 {
5353 compilationStartContext . RegisterSyntaxNodeAction ( syntaxContext =>
5454 {
55- var constructor = ( ConstructorDeclarationSyntax ) syntaxContext . Node ;
55+ var constructor = ( ConstructorDeclarationSyntax ) syntaxContext . Node ;
5656
5757 var compilationUnitSyntax = GetCompilationUnit ( constructor ) ;
5858
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ public class DirectoryAnalyzer : BaseFileSystemNodeAnalyzer
1818 /// <summary>
1919 /// Diagnostic Title
2020 /// </summary>
21- private const string Title = "Invocation Directory class shold be replaced with IFileSystem.Directory" ;
21+ private const string Title = "Replace Directory class with IFileSystem.Directory for improved testablity " ;
2222
2323 /// <summary>
2424 /// Diagnostic Message Format
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ public class DirectoryInfoAnalyzer: BaseFileSystemNodeAnalyzer
1818 /// <summary>
1919 /// Diagnostic Title
2020 /// </summary>
21- private const string Title = "Invocation DirectoryInfo class shold be replaced with IFileSystem.DirectoryInfo" ;
21+ private const string Title = "Replace DirectoryInfo class with IFileSystem.DirectoryInfo for improved testablity " ;
2222
2323 /// <summary>
2424 /// Diagnostic Message Format
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ public class DriveInfoAnalyzer: BaseFileSystemNodeAnalyzer
1818 /// <summary>
1919 /// Diagnostic Title
2020 /// </summary>
21- private const string Title = "Invocation DriveInfo class shold be replaced with IFileSystem.DriveInfo" ;
21+ private const string Title = "Replace DriveInfo class with IFileSystem.DriveInfo for improved testablity " ;
2222
2323 /// <summary>
2424 /// Diagnostic Message Format
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ public class FileAnalyzer : BaseFileSystemNodeAnalyzer
1818 /// <summary>
1919 /// Diagnostic Title
2020 /// </summary>
21- private const string Title = "Invocation File class shold be replaced with IFileSystem.File" ;
21+ private const string Title = "Replace File class with IFileSystem.File for improved testablity " ;
2222
2323 /// <summary>
2424 /// Diagnostic Message Format
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ public class FileInfoAnalyzer: BaseFileSystemNodeAnalyzer
1818 /// <summary>
1919 /// Diagnostic Title
2020 /// </summary>
21- private const string Title = "Invocation FileInfo class shold be replaced with IFileSystem.FileInfo" ;
21+ private const string Title = "Replace FileInfo class with IFileSystem.FileInfo for improved testablity " ;
2222
2323 /// <summary>
2424 /// Diagnostic Message Format
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ public class FileStreamAnalyzer: BaseFileSystemNodeAnalyzer
1818 /// <summary>
1919 /// Diagnostic Title
2020 /// </summary>
21- private const string Title = "Invocation FileStream class shold be replaced with IFileSystem.FileStream" ;
21+ private const string Title = "Replace FileStream class with IFileSystem.FileStream for improved testablity " ;
2222
2323 /// <summary>
2424 /// Diagnostic Message Format
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ public class FileSystemWatcherAnalyzer: BaseFileSystemNodeAnalyzer
1818 /// <summary>
1919 /// Diagnostic Title
2020 /// </summary>
21- private const string Title = "Invocation DriveInfo class shold be replaced with IFileSystem.DriveInfo " ;
21+ private const string Title = "Replace FileSystemWatcher instances with IFileSystem.FileSystemWatcher factory for improved testablity " ;
2222
2323 /// <summary>
2424 /// Diagnostic Message Format
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ public class PathAnalyzer : BaseFileSystemNodeAnalyzer
1818 /// <summary>
1919 /// Diagnostic Title
2020 /// </summary>
21- private const string Title = "Invocation Path class shold be replaced with IFileSystem.Path" ;
21+ private const string Title = "Replace Path class with IFileSystem.Path for improved testablity " ;
2222
2323 /// <summary>
2424 /// Diagnostic Message Format
You can’t perform that action at this time.
0 commit comments