BusinessLogic.Tests.UnitTests.LogicTests.PlayedGamesTests.PlayedGameRetrieverTests.SearchPlayedGamesTests.ItThrowsAnInvalidDateFormatExceptionIfTheStartDateGameLastUpdatedIsntYYYYMMDD C# (CSharp) Method

ItThrowsAnInvalidDateFormatExceptionIfTheStartDateGameLastUpdatedIsntYYYYMMDD() private method

        public void ItThrowsAnInvalidDateFormatExceptionIfTheStartDateGameLastUpdatedIsntYYYYMMDD()
        {
            var filter = new PlayedGameFilter
            {
                StartDateGameLastUpdated = "2015-3-1"
            };
            var expectedExceptionMessage = new InvalidDateFormatException(filter.StartDateGameLastUpdated).Message;

            var actualException = Assert.Throws<InvalidDateFormatException>(() => autoMocker.ClassUnderTest.SearchPlayedGames(filter));

            Assert.That(actualException.Message, Is.EqualTo(expectedExceptionMessage));
        }