Instantly share code, notes, and snippets.

Embed
What would you like to do?
[Theory]
[InlineData("")]
[InlineData(null)]
public void NaoDeveCursoTerUmNomeInvalido(string nomeInvalido)
{
Assert.Throws<ExcecaoDeDominio>(() =>
CursoBuilder.Novo().ComNome(nomeInvalido).Build())
.ComMensagem(Resource.NomeInvalido);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment