File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -88,6 +88,7 @@ private Settings()
8888 this . IsDefault = true ;
8989 this . analyzeFileNameExclusions = DefaultAnalyzeFileNameExclusions ;
9090 this . typeFileNameExclusions = DefaultTypeFileNameExclusions ;
91+ this . FinishConstruction ( ) ;
9192 }
9293
9394 private Settings ( XElement xml )
@@ -117,13 +118,9 @@ private Settings(XElement xml)
117118 if ( unitTestAttributes != null )
118119 {
119120 this . TestClassAttributeNames = [ .. unitTestAttributes . Elements ( "Class" ) . Select ( element => element . Value ) ] ;
120-
121121 this . TestMethodAttributeNames = [ .. unitTestAttributes . Elements ( "Method" ) . Select ( element => element . Value ) ] ;
122122 }
123123
124- NormalizeAttributeNames ( this . TestClassAttributeNames ) ;
125- NormalizeAttributeNames ( this . TestMethodAttributeNames ) ;
126-
127124 XElement preferredTermsElement = xml . Element ( "PreferredTerms" ) ;
128125 if ( preferredTermsElement != null )
129126 {
@@ -154,6 +151,8 @@ private Settings(XElement xml)
154151 this . PropertyNamesForCancellation = [ .. properties . Elements ( "Property" ) . Select ( p => p . Value ) ] ;
155152 }
156153 }
154+
155+ this . FinishConstruction ( ) ;
157156 }
158157
159158 #endregion
@@ -519,6 +518,12 @@ private static void NormalizeAttributeNames(HashSet<string> attributeNames)
519518 }
520519 }
521520
521+ private void FinishConstruction ( )
522+ {
523+ NormalizeAttributeNames ( this . TestClassAttributeNames ) ;
524+ NormalizeAttributeNames ( this . TestMethodAttributeNames ) ;
525+ }
526+
522527 #endregion
523528
524529 #region Private Delegates
You can’t perform that action at this time.
0 commit comments