예제 #1
0
            public void DTOrdenacaoTodos()
            {
                var teste = new Livraria();

                //List<Livros> lstLivros =  CarregarLivros();
                if (lstLivros.Count.Equals(0))
                {
                    CarregarLivros();
                }
                string retorno = teste.LivrosOrdenacao(lstLivros, "4");

                Assert.That(retorno, Is.EqualTo("Livros 1,2,3,4,5"));
            }
예제 #2
0
            public void DTOrdenacaoEmpty()
            {
                var teste = new Livraria();

                //List<Livros> lstLivros =  CarregarLivros();
                if (lstLivros.Count.Equals(0))
                {
                    CarregarLivros();
                }
                string retorno = teste.LivrosOrdenacao(lstLivros, "");

                Assert.That(retorno, Is.Empty);
            }
예제 #3
0
            public void DTOrdenacaoDataPublicacaoDscNomeDscAutorAsc()
            {
                var teste = new Livraria();

                //List<Livros> lstLivros =  CarregarLivros();
                if (lstLivros.Count.Equals(0))
                {
                    CarregarLivros();
                }
                string retorno = teste.LivrosOrdenacao(lstLivros, "3");

                Assert.That(retorno, Is.EqualTo("Livros 5,1,4,3,2"));
            }