public void DeveRetornarOcorrenciaDescricaoInvalida() { occurrence = OccurrenceFaker.Gerar(); var vO = occurrence.Generate(); add = new Occurrence(vO.OccurrenceType, vO.Cause, "", vO.OccurrenceStatus, vO.Date); Assert.True(add.Invalid); }
public void DeveRetornarOcorrenciaDescricaoTamanhoInvalida() { occurrence = OccurrenceFaker.Gerar(); var vO = occurrence.Generate(); int i = 0; string length = ""; while (i < 255) { length += "teste"; i++; } add = new Occurrence(vO.OccurrenceType, vO.Cause, vO.Description + length, vO.OccurrenceStatus, vO.Date); Assert.True(add.Invalid); }