public void NomesCompletosAgnomeTeste() { List <string> nomes = new List <string> { "João cabral DE melo Neto" }; string valorEsperado = "MELO NETO, João Cabral de"; NormasABNT abnt = new NormasABNT(nomes); List <Autor> autores = abnt.NomesCompletos(); Assert.AreEqual(valorEsperado, autores[0].ToString(), "Nome retornado incorreto!"); }
public void NomesCompletosTeste() { List <string> nomes = new List <string> { "Friedrich Wilhelm Nietzsche" }; string valorEsperado = "NIETZSCHE, Friedrich Wilhelm"; NormasABNT abnt = new NormasABNT(nomes); List <Autor> autores = abnt.NomesCompletos(); Assert.AreEqual(valorEsperado, autores[0].ToString(), "Nome retornado incorreto!"); }