24 references to MessageBoxImplementation_DllImport
Microsoft.CodeAnalysis.NetAnalyzers.UnitTests (24)
Microsoft.NetCore.Analyzers\Security\UseDefaultDllImportSearchPathsAttributeForLibraryImportAndDllImportTests.cs (24)
99await RunAnalyzerAsync(source, MessageBoxImplementation_DllImport,
126await RunAnalyzerAsync(source, MessageBoxImplementation_DllImport,
154await RunAnalyzerAsync(source, MessageBoxImplementation_DllImport,
182await RunAnalyzerAsync(source, MessageBoxImplementation_DllImport,
210await RunAnalyzerAsync(source, MessageBoxImplementation_DllImport, GetCSharpResultAt(9, 31, UseDefaultDllImportSearchPathsAttribute.DoNotUseUnsafeDllImportSearchPathRule, "AssemblyDirectory"));
234await RunAnalyzerAsync(source, MessageBoxImplementation_DllImport, GetCSharpResultAt(9, 31, UseDefaultDllImportSearchPathsAttribute.DoNotUseUnsafeDllImportSearchPathRule,
262await RunAnalyzerAsync(source, MessageBoxImplementation_DllImport, GetCSharpResultAt(9, 31, UseDefaultDllImportSearchPathsAttribute.DoNotUseUnsafeDllImportSearchPathRule,
290await RunAnalyzerAsync(source, MessageBoxImplementation_DllImport,
319await RunAnalyzerAsync(source, MessageBoxImplementation_DllImport,
349await RunAnalyzerAsync(source, MessageBoxImplementation_DllImport,
379await RunAnalyzerAsync(source, MessageBoxImplementation_DllImport, GetCSharpResultAt(11, 31, UseDefaultDllImportSearchPathsAttribute.DoNotUseUnsafeDllImportSearchPathRule,
415await RunAnalyzerWithConfigAsync(source, MessageBoxImplementation_DllImport, config,
449await RunAnalyzerWithConfigAsync(source + MessageBoxImplementation_DllImport, "", config, GetCSharpResultAt(9, 31,
483await RunAnalyzerWithConfigAsync(source, MessageBoxImplementation_DllImport, config,
511await RunAnalyzerAsync(source, MessageBoxImplementation_DllImport);
545await RunAnalyzerWithConfigAsync(source, MessageBoxImplementation_DllImport, config);
577await RunAnalyzerWithConfigAsync(source, MessageBoxImplementation_DllImport, config);
627await RunAnalyzerAsync(source, MessageBoxImplementation_DllImport);
652await RunAnalyzerAsync(source, MessageBoxImplementation_DllImport);
677await RunAnalyzerAsync(source, MessageBoxImplementation_DllImport);
696await RunAnalyzerAsync(source, MessageBoxImplementation_DllImport, GetCSharpResultAt(8, 31,
724await RunAnalyzerAsync(source, MessageBoxImplementation_DllImport);
748await RunAnalyzerAsync(source, MessageBoxImplementation_DllImport);
772await RunAnalyzerAsync(source, MessageBoxImplementation_DllImport);