Exemplo n.º 1
0
        public void MoviesRecomended()
        {
            var r = new SOLID_principles.SRP.Solution.Recommender();

            var movies = r.GetMoviesRecommended(DummyDB.JOHN);

            Assert.False(movies.Contains(DummyDB.ET));
        }
Exemplo n.º 2
0
        public void MoviewsRecommendedExportFormat()
        {
            var r      = new SOLID_principles.SRP.Solution.Recommender();
            var export = new Exporter();

            var csv = export.ExportToCSV(r.GetMoviesRecommended(DummyDB.JOHN));

            string expected = "Saving Private Ryan,Spielberg,War";

            Assert.Equal(expected, csv);
        }