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
45
45
/// <returns>The results of the analysis</returns>
46
46
public IEnumerable < DiagnosticRecord > AnalyzeDSCResource ( Ast ast , string fileName )
47
47
{
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
+ }
49
57
50
- // todo write tests for same
51
- // todo update documentation
58
+ // Get the keys in the corresponding mof file
52
59
var keys = GetKeys ( fileName ) ;
53
60
54
61
// Loop through Set/Test/Get TargetResource DSC cmdlets
You can’t perform that action at this time.
0 commit comments