ModelBuilder.UnitTests.ObjectExtensionTests.FindPropertiesThrowsExceptionWithNullSourceTest C# (CSharp) Method

FindPropertiesThrowsExceptionWithNullSourceTest() private method

private FindPropertiesThrowsExceptionWithNullSourceTest ( ) : void
return void
        public void FindPropertiesThrowsExceptionWithNullSourceTest()
        {
            var regex = new Regex("Stuff");

            var target = (object) null;

            Action action = () => target.FindProperties(regex);

            action.ShouldThrow<ArgumentNullException>();
        }