Exemplo n.º 1
0
        public void TestConfigFilmFactory()
        {
            var factory = new ConfigFilmFactory();
            var film    = factory.LoadFilm(Path.Combine(_assetPath, "film_1.csv"));

            Assert.NotNull(film);
        }
Exemplo n.º 2
0
        public void TestConfigFilmFactoryNegativeSalary()
        {
            var factory = new ConfigFilmFactory();

            Assert.Throws <NegativeValueException>(() =>
            {
                factory.LoadFilm(Path.Combine(_assetPath, "film_error_3.csv"));
            });
        }
Exemplo n.º 3
0
        public void TestConfigFilmFactoryIncorrectSalary()
        {
            var factory = new ConfigFilmFactory();

            Assert.Throws <StringFormatException>(() =>
            {
                factory.LoadFilm(Path.Combine(_assetPath, "film_error_2.csv"));
            });
        }