public void FindPropertiesThrowsExceptionWithNullSourceTest() { var regex = new Regex("Stuff"); var target = (object) null; Action action = () => target.FindProperties(regex); action.ShouldThrow<ArgumentNullException>(); }