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

ItThrowsAnArgumentExceptionIfTheNameIsNull() private method

private ItThrowsAnArgumentExceptionIfTheNameIsNull ( ) : void
return void
        public void ItThrowsAnArgumentExceptionIfTheNameIsNull()
        {
            Exception exception = Assert.Throws<ArgumentException>(() => autoMocker.ClassUnderTest.CreateUserDefintion(new CreateBoardGameGeekUserDefinitionRequest() { Name = null, BoardGameGeekUserId = 1}, currentUser));

            Assert.IsTrue(exception.Message.Contains(typeof(CreateBoardGameGeekUserDefinitionRequest).ToString()));
        }