public void AddWithIgnoreRuleThrowsExceptionWithNullCompilerTest() { var rule = new IgnoreRule(typeof(Person), "FirstName"); IBuildStrategyCompiler target = null; Action action = () => target.Add(rule); action.ShouldThrow<ArgumentNullException>(); }