public void CaminhoNaoEncontrado() { GerenciadorArquivoServico gerenciadorArquivo = new GerenciadorArquivoServico(); var retorno = gerenciadorArquivo.LerTxtPorLinha(@"C:\User\teste.txt"); Assert.IsNull(retorno); }
public void SalvarTxt() { GerenciadorArquivoServico gerenciadorArquivo = new GerenciadorArquivoServico(); gerenciadorArquivo.Salvar(@"C:\temp\teste.txt", new string[] { "teste", "teste" }); var retorno = gerenciadorArquivo.LerTxtPorLinha(@"C:\temp\teste.txt"); Assert.AreEqual("teste", retorno[0].ToString()); }