public void Invalid_models_Date_property_throws_exception( int year, int month, int day, string message) { var sut = new DateModel { Day = day, Month = month, Year = year }; sut.Invoking(x => x.Date).Should().Throw <Exception>().WithMessage(message); }