BusinessLogic.Tests.UnitTests.LogicTests.PlayersTests.PlayerSaverTests.SaveTests.ItThrowsAPlayerAlreadyExistsExceptionIfAttemptingToSaveAPlayerWithANameThatAlreadyExists C# (CSharp) Method

ItThrowsAPlayerAlreadyExistsExceptionIfAttemptingToSaveAPlayerWithANameThatAlreadyExists() private method

        public void ItThrowsAPlayerAlreadyExistsExceptionIfAttemptingToSaveAPlayerWithANameThatAlreadyExists()
        {    
            var exception = Assert.Throws<PlayerAlreadyExistsException>(
                () => _autoMocker.ClassUnderTest.Save(this._playerThatAlreadyExists, _currentUser));

            Assert.AreEqual(_idOfPlayerThatAlreadyExists, exception.ExistingPlayerId);
        }
    }