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