public void AddIgnoreRuleWithExpressionThrowsExceptionWithNullCompilerTest() { BuildStrategyCompiler target = null; Action action = () => target.AddIgnoreRule<Person>(x => x.FirstName); action.ShouldThrow<ArgumentNullException>(); }