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

            Assert.NotNull(film);
        }
Exemple #2
0
        public void TestConfigFilmFactoryNegativeSalary()
        {
            var factory = new ConfigFilmFactory();

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

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