ModelBuilder.UnitTests.BuildExceptionTests.GetObjectDataThrowsExceptionWithNullInfoTest C# (CSharp) Method

GetObjectDataThrowsExceptionWithNullInfoTest() private method

private GetObjectDataThrowsExceptionWithNullInfoTest ( ) : void
return void
        public void GetObjectDataThrowsExceptionWithNullInfoTest()
        {
            var streamingContext = new StreamingContext();

            var target = new BuildException();

            Action action = () => { target.GetObjectData(null, streamingContext); };

            action.ShouldThrow<ArgumentNullException>();
        }
    }