public void AddWithIgnoreRuleThrowsExceptionWithNullRuleTest() { var target = Substitute.For<IBuildStrategyCompiler>(); Action action = () => target.Add((IgnoreRule) null); action.ShouldThrow<ArgumentNullException>(); }