added missing null checks

added CA1062 'Validate arguments of public methods' to ruleset
added test ruleset with CA1062 omitted