BusinessLogic.Tests.UnitTests.LogicTests.UsersTests.BoardGameGeekUserSaverTests.CreateUserDefintionTests.ItThrowsAnArgumentNullExceptionIfTheModelIsNull C# (CSharp) Method

ItThrowsAnArgumentNullExceptionIfTheModelIsNull() private method

private ItThrowsAnArgumentNullExceptionIfTheModelIsNull ( ) : void
return void
        public void ItThrowsAnArgumentNullExceptionIfTheModelIsNull()
        {
            var expectedException = new ArgumentNullException(typeof(CreateBoardGameGeekUserDefinitionRequest).ToString());

            Exception exception = Assert.Throws<ArgumentNullException>(() => autoMocker.ClassUnderTest.CreateUserDefintion(null, currentUser));

            Assert.AreEqual(expectedException.Message, exception.Message);
        }