示例#1
0
        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);
        }
示例#2
0
        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);
        }