File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed
Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -45,10 +45,17 @@ public class UseIdenticalMandatoryParametersDSC : IDSCResourceRule
4545 /// <returns>The results of the analysis</returns>
4646 public IEnumerable < DiagnosticRecord > AnalyzeDSCResource ( Ast ast , string fileName )
4747 {
48- if ( ast == null ) throw new ArgumentNullException ( Strings . NullAstErrorMessage ) ;
48+ if ( ast == null )
49+ {
50+ throw new ArgumentNullException ( Strings . NullAstErrorMessage ) ;
51+ }
52+
53+ if ( fileName == null )
54+ {
55+ throw new ArgumentNullException ( nameof ( fileName ) ) ;
56+ }
4957
50- // todo write tests for same
51- // todo update documentation
58+ // Get the keys in the corresponding mof file
5259 var keys = GetKeys ( fileName ) ;
5360
5461 // Loop through Set/Test/Get TargetResource DSC cmdlets
You can’t perform that action at this time.
0 commit comments