@@ -9,10 +9,24 @@ public class TestCaseScreen : CollectionView
99 {
1010 public static Dictionary < string , Action > PageToAction = new Dictionary < string , Action > ( StringComparer . OrdinalIgnoreCase ) ;
1111
12+ [ UnconditionalSuppressMessage ( "TrimAnalysis" , "IL2112" ,
13+ Justification = "TestCaseScreen fields are not accessed via reflection in NativeAOT builds since reflection-based test discovery is disabled." ) ]
1214 bool _filterBugzilla ;
15+
16+ [ UnconditionalSuppressMessage ( "TrimAnalysis" , "IL2112" ,
17+ Justification = "TestCaseScreen fields are not accessed via reflection in NativeAOT builds since reflection-based test discovery is disabled." ) ]
1318 bool _filterNone ;
19+
20+ [ UnconditionalSuppressMessage ( "TrimAnalysis" , "IL2112" ,
21+ Justification = "TestCaseScreen fields are not accessed via reflection in NativeAOT builds since reflection-based test discovery is disabled." ) ]
1422 bool _filterGitHub ;
23+
24+ [ UnconditionalSuppressMessage ( "TrimAnalysis" , "IL2112" ,
25+ Justification = "TestCaseScreen fields are not accessed via reflection in NativeAOT builds since reflection-based test discovery is disabled." ) ]
1526 bool _filterManual ;
27+
28+ [ UnconditionalSuppressMessage ( "TrimAnalysis" , "IL2112" ,
29+ Justification = "TestCaseScreen fields are not accessed via reflection in NativeAOT builds since reflection-based test discovery is disabled." ) ]
1630 string _filter ;
1731
1832 void CheckInternetAndLoadPage ( Type type )
@@ -88,6 +102,8 @@ Action ActivatePageAndNavigate(IssueAttribute issueAttribute, Type type)
88102 return navigationAction ;
89103 }
90104
105+ [ UnconditionalSuppressMessage ( "TrimAnalysis" , "IL2026" ,
106+ Justification = "ActivatePage method is only called in non-NativeAOT builds where reflection-based test discovery is enabled." ) ]
91107 Page ActivatePage ( [ DynamicallyAccessedMembers ( DynamicallyAccessedMemberTypes . PublicParameterlessConstructor ) ] Type type )
92108 {
93109 var page = Activator . CreateInstance ( type ) as Page ;
@@ -136,6 +152,8 @@ public bool Matches(string filter)
136152 }
137153 }
138154
155+ [ UnconditionalSuppressMessage ( "TrimAnalysis" , "IL2112" ,
156+ Justification = "TestCaseScreen fields are not accessed via reflection in NativeAOT builds since reflection-based test discovery is disabled." ) ]
139157 readonly List < IssueModel > _issues ;
140158
141159 void VerifyNoDuplicates ( )
@@ -322,6 +340,8 @@ from issueModel in _issues
322340 ItemsSource = issues ;
323341 }
324342
343+ [ UnconditionalSuppressMessage ( "TrimAnalysis" , "IL2112" ,
344+ Justification = "TestCaseScreen fields are not accessed via reflection in NativeAOT builds since reflection-based test discovery is disabled." ) ]
325345 HashSet < string > _exemptNames = new HashSet < string > { } ;
326346
327347 // Legacy reasons, do not add to this list
0 commit comments