public void ObterListaDeMensagensDasExcecoes()
        {
            List <string> result = ArgumentsValidator.GetMessagesFromExceptions(
                RaiseException.IfNull(null, "object is required"),
                RaiseException.IfNotEmail("email_invalid", "email invalid")
                );

            Assert.IsNotNull(result, "object required");
            Assert.IsTrue(result.Count == 2, "There should be two exceptions");
        }
        public void LancarExcecaoIndividualCasoAsColecoesNaoTenhamItemDentro()
        {
            string        mensagem = "Não há itens na coleção";
            List <string> lista    = new List <string>();

            int[]    numeros = new int[] { };
            string[] nomes   = new string[] { };

            try
            {
                List <string> mgs = ArgumentsValidator.GetMessagesFromExceptions(
                    RaiseException.IfCollectionEmpty(lista, mensagem),
                    RaiseException.IfCollectionEmpty(numeros, mensagem),
                    RaiseException.IfCollectionEmpty(nomes, mensagem));

                Assert.IsTrue(mgs.Count == 3, "As coleções estao nulas.");
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }